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

> For what it's worth, when we designed the Web Animations API, the intention was that driving video playback would happen via different types of effects and you'd synchronize it with other animations via group effects.

Yeah, that would be a more coherent method.
If we consider a new `VideoEffect` that can take a `<video>` as target and put in side an `Animation` that takes a timeline and ranges. Then we can reason about synching that animation with others using group effects.

I suppose if we have `video-timeline` we also need to consider `video-range`.
But OTOH, we don't really need all the `animation-*` properties.

So, how would a declarative API look like? It seems to me that all we need here is `-timeline` and `-range`. So that could be the declarative syntax, while the WAAPI side would could be via a new type of `VideoEffect`.

WDYT?

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


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

Received on Sunday, 2 February 2025 04:22:52 UTC