gury
gury copied to clipboard
Use requestAnimationFrame
Use requestAnimationFrame for better animations (smoother, less battery, no tearing, synced drawing)
http://dev.chromium.org/developers/design-documents/requestanimationframe-implementation http://paulirish.com/2011/requestanimationframe-for-smart-animating/ https://developer.mozilla.org/en/DOM/window.mozRequestAnimationFrame http://blog.chromium.org/2011/03/getting-smoother-animated-web-content.html
Ah good call, thanks for letting me know about that :).
Please don't! jQuery has decided to not use it. Probably the best would be to use jQuery (if jQuery is available) animation ticks.