Skip to content

Instantly share code, notes, and snippets.

@basecode
Created June 16, 2011 19:19
Show Gist options
  • Save basecode/1030010 to your computer and use it in GitHub Desktop.
Save basecode/1030010 to your computer and use it in GitHub Desktop.
animationStartTime: shim layer with Date.now() fallback
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