Re: [csswg-drafts] [css-animations-2] Add animation-trigger for triggering animations when an element is in a timeline's range (#8942)

thanks @flackr!  This looks good!

There's yet another use-case I'd like to consider: switching `animation-play-state` for animations with `iterations: infinite`.
This kind of animations could ideally just start playing immediately, but have to be paused outside the viewport for sake pf perf optimization. Furthermore, none of the current modes we have so far really matches the required effect, unless the author wishes to restart the animation each time, and for that they can use `repeat`.

We could name it something like `toggle`? Or `toggle-state`?

-- 
GitHub Notification of comment by ydaniv
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/8942#issuecomment-1729953439 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Thursday, 21 September 2023 16:51:07 UTC