Created
March 16, 2015 17:02
-
-
Save bgadrian/d2c67c5636b181348869 to your computer and use it in GitHub Desktop.
Event for CSS3 animation end
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
var cssAnimationEndHandlerNS = 'animationend webkitAnimationEnd oAnimationEnd MSAnimationEnd'; | |
selector.addClass('animation'); | |
.bind(cssAnimationEndHandlerNS, function () | |
{ | |
Sselector | |
.removeClass('animation') | |
.unbind(cssAnimationEndHandlerNS); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment