js-animate
v1.0.0
Published
Animate an element with js.
Downloads
2
Readme
animate
Animate an element with js.
Install
bower install js-animate
or npm install js-animate
Usage
Include animate.js in your markup. Call animate
at anytime.
<script type="text/javascript" src="path/to/animate.js"></script>
<script>
var box = document.querySelector('.box');
animate(box, 'left', 0, 400, 300); // from 0px to 400px in 300 ms
</script>
Capability
IE6+
Firefox3.6+
Chrome15+
Opera10.6+
Safari4+
License
This project is available under the MIT license.