Last active
August 29, 2015 13:58
-
-
Save ayozebarrera/10103855 to your computer and use it in GitHub Desktop.
Animation callback
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
//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