Created
September 14, 2012 01:14
-
-
Save mattlenz/3719192 to your computer and use it in GitHub Desktop.
Cross-browser CSS transitionEnd & animationEnd
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$.fn.transitionEnd = (callback) -> | |
$(@).one 'transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd', callback | |
$.fn.animationEnd = (callback) -> | |
$(@).one 'animationend webkitAnimationEnd oAnimationEnd MSAnimationEnd', callback |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment