Package Exports
- css-animation
- css-animation/lib/Event
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (css-animation) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
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 | will add animationName as class to el,then setTimeout 0 to add ${animationName}-active 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.