Created
December 30, 2013 21:06
-
-
Save Odinodin/8188135 to your computer and use it in GitHub Desktop.
animation frame
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
(def animate | |
"Request animation frame" | |
(or (.-requestAnimationFrame js/window) | |
(.-oRequestAnimationFrame js/window) | |
(.-mozRequestAnimationFrame js/window) | |
(.-webkitRequestAnimationFrame js/window) | |
(.-msRequestAnimationFrame js/window) | |
(fn [callback] (js/setTimeout callback 17)))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment