Skip to content

Instantly share code, notes, and snippets.

@charliecm
Created September 29, 2013 23:29
Show Gist options
  • Save charliecm/6757498 to your computer and use it in GitHub Desktop.
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
// 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