@ant-design/css-animation
css-animation
Last updated 5 years ago by afc163 .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ gnpm install @ant-design/css-animation 
SYNC missed versions from official npm registry.

css-animation


make css animation easier

NPM version

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

css-animation

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.

Current Tags

  • 1.7.3                                ...           latest (4 years ago)

5 Versions

  • 1.7.3                                ...           4 years ago
  • 1.7.2                                ...           5 years ago
  • 1.7.1                                ...           5 years ago
  • 1.7.0                                ...           5 years ago
  • 1.6.0                                ...           5 years ago
Maintainers (2)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (5)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |