Homepage: http://daneden.me/animate
Author(s): Daniel Eden
Version: 3.7.0
A cross-browser library of CSS animations.
Usage
To start using animate.css you need to load it into the page using %JQREQUIRE{"animate"}%. There are two ways to make use of this library.
Direct use of animate.css
The only thing required to animate a DOM node is to add css classes to it:
Add the class animated to the element you want to animate
Add the class infinite in case that you also want it to be aninated in an infinite loop
Add the class of the animation as listed below
Use via jqAnimateCSS
This is a small convenience wrapper that adds a bit more control over the kind of animation, i.e. in addition to the direct name of the effect
you may also choose a random effect or one of a group of effects:
Add the class jqAnimateCSS to the element to animate
either an effect name as listed below, or the name of an effect group to chose a random effect from, or the string random for a random effect among all known ones, or a comma separated list of effects
data-infinite="true/false
switch on/off an infinite effect loop
false
Whenever sending the element a refresh signal will the effect be repeated, or another one will be chosen among the set of effects configured.
You type:
A jqAnimateCSS element will be initialized by an animateCSS javascript object which takes over control of the animation as well as offers a few methods that come in handy when dealing with animations.
You may access the animateCSS instance of a jqAnimateCSS element using jQuery.data() method:
The .animate() method may be used to start the animation. It returns a promise that will be resolved once the animation finished.
Events
The element controller fires two events:
start: fired right before the animation starts
stop: triggered once the animation finished
The stop event is provided in addition to the different browser events fired when a css animation stopped.
So listening on an animateCSS element via $("#myElem").on("finish", function() {...}) is equivalent to the much more complicated standard way