You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This plugin uses jQuery deferreds to do things after CSS animations and/or transitions are complete.
distuli?
Google translate provided distuli as the Latin translation of deferred.
The word is uncommon and thus should be safe in your $.fn namespace.
Usage
$("#thingy").distuli({
name: "name", // the name of a css selector with a transition or animation
complete: function() {
//do stuff
$(this).html("I got animated."); // the element with an id of "thingy" now has "I got animated." in it.
}
});
Details
name is a CSS selector name.
complete is a function that fires when the transition or animation finishes.
You may use $(this) in the function to do stuff to the element that was animated.
The plugin does not remove the selector name from the element upon completion (so the programmer can decide when it's best to do so).
Roadmap
My plans include support for listing multiple selector names and tracking/reporting completion of each step.
About the Author
Dan Kapusta is a UI Engineer at AOL and is trying to keep things simple.
I wrote this to learn more about css animations and jQuery deferreds.
This is my first plugin, so it's far from perfect.