Created
July 12, 2012 15:15
-
-
Save adamjmcintyre/3098766 to your computer and use it in GitHub Desktop.
Using CSS keyframe animationend event cross-browser with jQuery
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
$('.some-els').bind('animationend webkitAnimationEnd MSAnimationEnd oAnimationEnd', function(){ | |
// Do something! | |
$(this).removeClass('animation-class'); | |
}) | |
.addClass('animation-class'); | |
// One works, too | |
$('.some-els').one('animationend webkitAnimationEnd MSAnimationEnd oAnimationEnd', function(){ | |
// Do something once! | |
console.log('this would show once'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
it works thank you.