You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
![]() |
5 years ago | |
---|---|---|
.. | ||
es | 5 years ago | |
lib | 5 years ago | |
HISTORY.md | 5 years ago | |
LICENSE.md | 5 years ago | |
README.md | 5 years ago | |
package.json | 5 years ago |
README.md
css-animation
make css animation easier
Development
npm install
npm start
Example
http://localhost:9001/examples/
online example: http://yiminghe.github.io/css-animation/
Feature
- support ie8,ie8+,chrome,firefox,safari
install
Usage
var anim = require('css-animation');
anim(el,animationName,function(){});
API
void anim(el:DOMElement, animationName:String, callback:Function)
name | type | default | description |
---|---|---|---|
el | DOMElement | dom element to be animated | |
animationName | String|Object | will add animationName (if string) or animationName.name (if object) as class to el, then setTimeout 0 to add ${animationName}-active (if string) or animationName.active (if object) to el | |
callback | Function | triggered when anim caused by animationName is done |
Test Case
npm test
npm run chrome-test
Coverage
npm run coverage
open coverage/ dir
License
css-animation is released under the MIT license.