Re: [csswg-drafts] [web-animations-2][css-animations-2] Allow controlling video playback via an animation timeline (#11611)

The reason to use a video effect, is that you get to re-use the rest of the animation ecosystem. With `playback-timeline` you then either don't have, or need to add other ways to specify the following:
* Specify named ranges, offsets within those ranges
* Have non-linear playback of the video
* Looping the video some number of times over the given timeline

Building this on top of an animation effect gets you all of these things implicitly. I think of it as that you are animating the video progress, which is similar to animating some internal css property that sets the video time.

The only part I'm uncertain of, which `playback-timeline` doesn't handle any better, is how to differentiate multiple videos on the same element - e.g. supposing we have support for video as a css image #6732 it would be nice to be able to associate the animation with a particular video.

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


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

Received on Friday, 21 February 2025 14:49:56 UTC