Skip to content

apply css transitions to elements, calling back when the animation finishes

Notifications You must be signed in to change notification settings

bmcmahen/animate-css

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

animate-css

A small helper for applying CSS animations to an element, with a callback for when that animation finishes. If the browser doesn't support animations, the callback is invoked immediately. It works well with animate.css animations.

Installation

$ component install bmcmahen/animate-css

API

var animate = require('bmcmahen-animate-css');
var el = document.getElementById('animate-me');
animate(el, 'fadeOutRight', function(element){
  // Element has finished animating
});

License

MIT

About

apply css transitions to elements, calling back when the animation finishes

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published