- From: Majid Valipour via GitHub <sysbot+gh@w3.org>
- Date: Thu, 30 Apr 2020 20:15:30 +0000
- To: public-css-archive@w3.org
majido has just submitted a new pull request for https://github.com/w3c/csswg-drafts: == [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:15:32 UTC