- Notifications
You must be signed in to change notification settings - Fork410
JavaScript implementation of the Web Animations API
License
web-animations/web-animations-js
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
A new JavaScript API for driving animated content on the web. By unifyingthe animation features of SVG and CSS, Web Animations unlocks featurespreviously only usable declaratively, and exposes powerful, high-performanceanimation capabilities to developers.
A JavaScript implementation of the Web Animations API that provides WebAnimation features in browsers that do not support it natively. The polyfillfalls back to the native implementation when one is available.
Here's a simple example of an animation that fades and scales a<div>
.
Try it as a live demo.
<!-- Include the polyfill --><scriptsrc="web-animations.min.js"></script><!-- Set up a target to animate --><divclass="pulse"style="width: 150px;">Hello world!</div><!-- Animate! --><script>varelem=document.querySelector('.pulse');varanimation=elem.animate({opacity:[0.5,1],transform:['scale(0.5)','scale(1)'],},{direction:'alternate',duration:500,iterations:Infinity,});</script>
For feedback on the API and the specification:
- File an issue on GitHub:https://github.com/w3c/web-animations/issues/new
- Alternatively, send an email topublic-fx@w3.org with subject line"[web-animations] ... message topic ..."(archives).
For issues with the polyfill, report them on GitHub:https://github.com/web-animations/web-animations-js/issues/new.
Breaking polyfill changes will be announced on this low-volume mailing list:web-animations-changes@googlegroups.com.
- Technical details about the polyfill
- To test experimental API features, try one of theexperimental targets
About
JavaScript implementation of the Web Animations API
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.