Created
March 15, 2013 11:42
-
-
Save Papacidero/5169311 to your computer and use it in GitHub Desktop.
Jquery: CSS3 Animation Iteration
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
jQuery(document).ready(function($) { | |
//Documentation http://www.sitepoint.com/css3-animation-javascript-event-handlers/ | |
// W3C STANDARD | |
// animationstart | |
// animationiteration | |
// animationend | |
// FIREFOX | |
// animationstart | |
// animationiteration | |
// animationend | |
// WEBKIT | |
// webkitAnimationStart | |
// webkitAnimationIteration | |
// webkitAnimationEnd | |
// OPERA | |
// oanimationstart | |
// oanimationiteration | |
// oanimationend | |
// IE10 | |
// MSAnimationStart | |
// MSAnimationIteration | |
// MSAnimationEnd | |
//Animation Started | |
$('.element').on('animationstart webkitAnimationStart oanimationstart MSAnimationEnd', function (argument) { | |
//Do Something | |
}); | |
//Animation Ended | |
$('.element').on('animationend webkitAnimationEnd oanimationend MSAnimationEnd', function (argument) { | |
//Do Something | |
}); | |
//Animation Iteration | |
$('.element').on('animationiteration webkitAnimationIteration oanimationiteration MSAnimationIteration', function (argument) { | |
//Do Something | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment