css-animation

2.0.4 • Public • Published

css-animation


make css animation easier

NPM version

Development

npm install
npm start

Example

http://localhost:6006/

online example: http://yiminghe.github.io/css-animation/

Feature

  • support ie8,ie8+,chrome,firefox,safari

install

css-animation

Usage

import anim from '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

License

css-animation is released under the MIT license.

Readme

Keywords

Package Sidebar

Install

npm i css-animation

Weekly Downloads

416,280

Version

2.0.4

License

MIT

Unpacked Size

75.2 kB

Total Files

7

Last publish

Collaborators

  • yiminghe