Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@ant-design/css-animation

ant-design659.2kMIT1.7.3

css-animation

css-animation

readme

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.

changelog

History


1.7.2 / 2020-05-07

  • remove babel-runtime

1.7.0 / 2020-05-07

  • fix wrong publish package

1.6.0 / 2020-05-07

  • remove component-classes

1.5.0 / 2018-11-12

  • support startEventListenter

1.4.0 / 2017-08-16

  • add es version

1.3.0 / 2016-08-01

  • support animationName as object