Skip to content

Instantly share code, notes, and snippets.

@ayozebarrera
Last active August 29, 2015 13:58
Show Gist options
  • Save ayozebarrera/10103855 to your computer and use it in GitHub Desktop.
Save ayozebarrera/10103855 to your computer and use it in GitHub Desktop.
Animation callback
//Callback when animation is done (transition instead animation for transitions)
$subnav.on('webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend', function(){
//Code to run after animation
//unbind event for the next time
$(this).off('webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment