Web Animations Polyfill breaking change: Time is now specified in milliseconds

50 views
Skip to first unread message

Douglas Stockwell

unread,
Apr 22, 2014, 9:10:11 PM4/22/14
to web-animati...@googlegroups.com, polymer-dev
If you do not use the latest Web Animations polyfill you can stop reading.

The default unit for time values in the Web Animations API has changed from seconds to milliseconds.

The change was merged here. If you wish to delay migration, do not advance beyond this commit.

Where you previously used:
element.animate(keyframes, {duration: 1});

You must now use:
element.animate(keyframes, {duration: 1000});

The same applies to all time related properties: duration, delay, endDelay, currentTime, etc.

This issue was raised on blink-dev and discussed further on public-fx. The specification has been updated to reflect this change. If you have any further feedback on this change, please join the discussion on public-fx. If you encounter any issues in the polyfill relating to this change please file issues on github.

Douglas Stockwell

unread,
Apr 23, 2014, 6:27:52 PM4/23/14
to polymer-dev
bcc: polymer-announce
Reply all
Reply to author
Forward
0 new messages