Created
May 6, 2012 16:34
-
-
Save iamntz/2623199 to your computer and use it in GitHub Desktop.
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
$('#myElement').live('webkitAnimationEnd webkitAnimationStart keyframe', function(e){ | |
switch( e.type ){ | |
case 'webkitAnimationEnd': | |
// end event | |
break; | |
case 'webkitAnimationStart': | |
// start event | |
break; | |
case 'keyframe': | |
// trigger event | |
console.log(e.originalEvent.percent); | |
break; | |
} | |
}); | |
$('#myElement').keyframe(); // plugin init | |
$('#myElement').addClass('ani foo'); // css animation |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment