Created
July 3, 2016 14:44
-
-
Save BlackDante/ef1339a6611c24bee9bc8d5bcb93095f to your computer and use it in GitHub Desktop.
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 requestAnimation, start; | |
start = null; | |
requestAnimation = function(timestamp) { | |
var progress; | |
if (!start) { | |
start = timestamp; | |
} | |
progress = timestamp - start; | |
console.log('RequestAnimationFrame: ' + progress); | |
return window.requestAnimationFrame(requestAnimation); | |
}; | |
window.requestAnimationFrame(requestAnimation); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment