jeromeetienne / learningthreejs.com-backup

blog about learning three.js
http://learningthreejs.com
MIT License
22 stars 4 forks source link

post idea: animations with requestAnimationFrame() #4

Closed LukasSkywalker closed 12 years ago

LukasSkywalker commented 12 years ago

There are a few tutorials which explain requestAnimationFrame() but I read somewhere that the delta is not always the same (depends on other drawing actions in the browser) --> you have to adjust the offset in your animation. How to do that, how to cancel an animation etc.

jeromeetienne commented 12 years ago

plenty of doc already exist on the subject

http://paulirish.com/2011/requestanimationframe-for-smart-animating/

http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating

http://notes.jetienne.com/2011/05/18/cancelRequestAnimFrame-for-paul-irish-requestAnimFrame.html