Skip to content
make css animation easier
JavaScript
Branch: master
Clone or download
Latest commit a5986d7 Aug 22, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.storybook remove addon panel Jul 31, 2019
src clean Aug 22, 2019
stories use pack and storybook Jul 27, 2019
.babelrc.js
.editorconfig 1.0.0 Jun 4, 2015
.gitignore use pack and storybook Jul 27, 2019
.prettierrc use pack and storybook Jul 27, 2019
HISTORY.md 2.x Jul 28, 2019
LICENSE.md Added LICENSE.md Dec 21, 2016
README.md up Jul 27, 2019
package.json clean Aug 22, 2019

README.md

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.

You can’t perform that action at this time.