[csswg-drafts] Pull Request: [web-animations-1] Add timeline to animate() options (#5013)

majido has just labeled a pull request from majido for https://github.com/w3c/csswg-drafts as "scroll-animations":

== [web-animations-1] Add timeline to animate() options (#5013) ==
Fixes #5013 

The options dictionary in `Element.animate` now has an optional nullable timeline
member. This allows timeline to be set via that method in addition to Animation
constructor.

Here are some examples of how this may be used:
```
// Create animation with a null timeline.
div.animate({color: 'red' }, { duration: 1000, timeline: null});
```

```
// Create a scroll-linked animation.
div.animate({color: 'red' }, { duration: 1000, timeline: new ScrollTimeline()});
```


See https://github.com/w3c/csswg-drafts/pull/5033

Received on Thursday, 30 April 2020 20:16:41 UTC