Skip to content

kapusta/distuli.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

distuli is a jQuery plugin

  • 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.

Inspiration and Acknowledgments

Copyright and License

About

distuli is a jQuery plugin that uses jQuery deferreds to do things after CSS animations and/or transitions are complete

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors