Skip to content

Instantly share code, notes, and snippets.

@Papacidero
Created March 15, 2013 11:42
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Papacidero/5169311 to your computer and use it in GitHub Desktop.
Save Papacidero/5169311 to your computer and use it in GitHub Desktop.
Jquery: CSS3 Animation Iteration
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