Socket
Socket
Sign inDemoInstall

css-animation

Package Overview
Dependencies
0
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    css-animation

css-animation


Version published
Weekly downloads
422K
decreased by-0.45%
Maintainers
1
Install size
74.3 kB
Created
Weekly downloads
 

Readme

Source

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)

nametypedefaultdescription
elDOMElementdom element to be animated
animationNameString|Objectwill 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
callbackFunctiontriggered when anim caused by animationName is done

License

css-animation is released under the MIT license.

Keywords

FAQs

Last updated on 22 Aug 2019

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc