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

> I can see possible use cases for some other `animation-*` properties. E.g. [@flackr](https://github.com/flackr) mentioned `video-play-state` which could possibly also be covered using `animation-play-state`. For seconds-long videos used in chats you often see them repeated a few times before they stop, which would be covered by `animation-iteration-count`. `animation-duration` could influence the video duration. And `animation-direction` could influence whether the video is played forwards or backwards.

I agree with @SebastianZ here. 

Having `delay` and `end-delay` would be useful to stagger videos, or to control the start and end of a common pre-rendered video depending on the context. We often use pre-rendered videos as illustrations or decorations in our articles where this would be useful.

Having the rest of the options/properties could be useful with a regular document timeline as well. I.e. one could use end-delay to play a video to predefined stop. Direction would allow us to do that in reverse, effectively allowing us to play a video step-by-step. (I would love a `.playTo()` as well :) )

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


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

Received on Friday, 7 February 2025 15:31:46 UTC