js-animate

1.0.0 • Public • Published

animate

version
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.

Readme

Keywords

Package Sidebar

Install

npm i js-animate

Weekly Downloads

1

Version

1.0.0

License

MIT

Last publish

Collaborators

  • ganlanyuan