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.
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.