Socket
Socket
Sign inDemoInstall

css-animation

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

css-animation


Version published
Weekly downloads
420K
increased by0.49%
Maintainers
1
Install size
8.49 kB
Created
Weekly downloads
 

Readme

Source

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/build/examples/

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)

nametypedefaultdescription
elDOMElementdom element to be animated
animationNameStringwill add animationName as class to el,then setTimeout 0 to add ${animationName}-active to el
callbackFunctiontriggered 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.

Keywords

FAQs

Last updated on 07 Jul 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc