Created
May 21, 2014 13:00
-
-
Save marcelaraujo/2ce3d1390f8661dc4c71 to your computer and use it in GitHub Desktop.
request animation
This file contains hidden or 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
var requestAnimFrame = (function () { | |
return window.requestAnimationFrame || | |
window.webkitRequestAnimationFrame || | |
window.mozRequestAnimationFrame || | |
window.oRequestAnimationFrame || | |
window.msRequestAnimationFrame || | |
function (/* function */ callback, /* DOMElement */ element) { | |
window.setTimeout( callback, 16.667 ); | |
}; | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment