Re: [csswg-drafts] [web-animations-2] [css-animations-2] Allow animations to be synchronized to the playback of audio or video elements (#9110)

@Que-tin yes, this is what I wanted to propose here, that a non-less interesting use-case it the opposite, of synching a media element to a timeline, like scroll/view/hover/etc.
But then this has nothing to do with animations.
Instead, you just want to be able to say: "sync this media's timing to another declared timeline".

Something perhaps like the following:
```css
.timeline {
  view-timeline: --scrubber y;
}

video {
  playback-timeline: --scrubber;
}
```

So need to differentiate between declaring a timeline of a media for usage in an `animation` vs. specifying a timeline for a media element of an declared timeline.

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


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

Received on Tuesday, 25 July 2023 09:57:31 UTC