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

So what I'm hearing is that we should have an easy way to make an effect that drives the video. I wonder if this would be something like

CSS:
```css
video {
  animation-name: video();
}
```

Or, in JS:
```js
new Animation(new VideoEffect(video), { /* animation options */ });
```

To the concern from @bramus about just wanting to drive a video, this would be as simple as:
```css
video {
  animation-name: video();
  animation-timeline: view();
}
```

-- 
GitHub Notification of comment by flackr
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/11611#issuecomment-2643356327 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 16:10:55 UTC