Created
June 16, 2011 19:19
-
-
Save basecode/1030010 to your computer and use it in GitHub Desktop.
animationStartTime: shim layer with Date.now() fallback
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
window.animStartTime = (function(w) { | |
return w.animationStartTime || | |
w.webkitAnimationStartTime || | |
w.mozAnimationStartTime || | |
w.oAnimationStartTime || | |
w.msAnimationStartTime || | |
+new Date(); | |
})(window); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment