Description
This feels a bit weird for themes without an animation.
I'd expect messages to disappear after the time I set in the urlbuilder on the homepage.
For themes with an animation: the animation starts at the time I set.
For themes without: do they stay onscreen for the time I set + 1.2s?
Originally posted by @NickyMeuleman in #91 (comment)
In #91, showmy.chat added an API to animate messages as they were being deleted (data-twitch-message-display-status="deleting"
). However, this meant that we couldn't remove messages immediately — we had to apply the style hook, wait a bit (1.2 seconds), and then delete.
This works great for themes that have outgoing message animations, but it introduces a delay when no animations are used — the overlay user says "remove messages after 5 seconds," and the overlay actually removes them after 6.2 seconds. This isn't noticeable after a long enough message lifespan (the difference between 20 seconds and 21.2 seconds isn't especially profound). However, it would be nice if we could tighten the gap between when the user says to remove messages and when we actually remove them in the case that the theme doesn't animate outgoing messages.
Themes could use either CSS transitions or CSS animations to animate an outgoing message. To detect animations, we've found the getAnimations
method, which landed in Chrome 84. With Twitch streamers forced to update their OBS instances soon to continue streaming to Twitch, using >75
Chrome APIs is on the table, but I'd like to give it a few months before we start using >75
APIs just to be safe.
Activity