web-animations-js
JavaScript implementation of the Web Animations API
Last updated a year ago by alancutter .
Apache-2.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install web-animations-js 
SYNC missed versions from official npm registry.

What is Web Animations?

A new JavaScript API for driving animated content on the web. By unifying the animation features of SVG and CSS, Web Animations unlocks features previously only usable declaratively, and exposes powerful, high-performance animation capabilities to developers.

What is in this repository?

A JavaScript implementation of the Web Animations API that provides Web Animation features in browsers that do not support it natively. The polyfill falls back to the native implementation when one is available.

Quick start

Here's a simple example of an animation that fades and scales a <div>.
Try it as a live demo.

<!-- Include the polyfill -->
<script src="web-animations.min.js"></script>

<!-- Set up a target to animate -->
<div class="pulse" style="width: 150px;">Hello world!</div>

<!-- Animate! -->
<script>
    var elem = document.querySelector('.pulse');
    var animation = elem.animate({
        opacity: [0.5, 1],
        transform: ['scale(0.5)', 'scale(1)'],
    }, {
        direction: 'alternate',
        duration: 500,
        iterations: Infinity,
    });
</script>

Documentation

We love feedback!

Keep up-to-date

Breaking polyfill changes will be announced on this low-volume mailing list: web-animations-changes@googlegroups.com.

More info

Current Tags

  • 2.3.2                                ...           latest (a year ago)

12 Versions

  • 2.3.2                                ...           a year ago
  • 2.3.1                                ...           3 years ago
  • 2.3.0                                ...           3 years ago
  • 2.2.5                                ...           3 years ago
  • 2.2.4                                ...           3 years ago
  • 2.2.3                                ...           3 years ago
  • 2.2.2                                ...           4 years ago
  • 2.2.1                                ...           4 years ago
  • 2.1.5                                ...           4 years ago
  • 2.2.0                                ...           4 years ago
  • 2.1.4                                ...           5 years ago
  • 2.1.3                                ...           5 years ago
Downloads
Today 9
This Week 1,244
This Month 6,112
Last Day 353
Last Week 1,841
Last Month 6,840
Dependencies (0)
None
Dependents (565)

Copyright 2014 - 2016 © taobao.org |