# css-animation **Repository Path**: mirrors_fis-components/css-animation ## Basic Information - **Project Name**: css-animation - **Description**: Fork from https://github.com/yiminghe/css-animation.git - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-08 - **Last Updated**: 2026-08-01 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # css-animation --- make css animation easier [![NPM version][npm-image]][npm-url] [npm-image]: http://img.shields.io/npm/v/css-animation.svg?style=flat-square [npm-url]: http://npmjs.org/package/css-animation ## Development ``` npm install npm start ``` ## Example http://localhost:9001/examples/ online example: http://yiminghe.github.io/css-animation/build/examples/ ## Feature * support ie8,ie8+,chrome,firefox,safari ## install [![css-animation](https://nodei.co/npm/css-animation.png)](https://npmjs.org/package/css-animation) ## Usage ```js 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 http://localhost:9001/tests/runner.html?coverage ## Coverage http://localhost:9001/node_modules/rc-server/node_modules/node-jscover/lib/front-end/jscoverage.html?w=http://localhost:9000/tests/runner.html?coverage ## License css-animation is released under the MIT license.