Created
September 29, 2013 23:29
-
-
Save charliecm/6757498 to your computer and use it in GitHub Desktop.
jQuery cross-browser callback for CSS3 animations or transitions.
http://stackoverflow.com/questions/9255279/callback-when-css3-transition-finishes
This file contains 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
// Animation | |
$('selector').on('animationend webkitAnimationEnd oAnimationEnd MSAnimationEnd', function() { | |
}); | |
// Transition | |
$('selector').on('transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd', function() { | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment