Meteor jQuery Animation Callback
Simple callback for CSS3 animations with jquery
Installation
meteor add gwendall:jquery-animation-callback
Methods
$(selector).onAnimationEnd(callback, animationName)
animationName
allows to set the callback on a given animation (or multiple animations if you pass an array).
$(selector).onTransitionEnd(callback)
Example
1$(".item").onAnimationEnd(function(animationName) { 2 console.log("The animation '" + animationName + "' ended on this element."); 3}, ["fadeIn", "fadeOut"]);