4 ms·
There’s a difference between creating your own draw-loop with setTimeout and requesting a CSS animation. Whether you use requestAnimationFrame which calls your
by IggleSniggle 3y ago
There’s a difference between creating your own draw-loop with setTimeout and requesting a CSS animation.
Whether you use requestAnimationFrame which calls your code at every draw step or whether you set a CSS animation directive, you are delegating the animation work to the browser. In either case, the resultant behavior is dependent on browser-code, not your own js. This is very different than setting up your own manual draw loop with setTimeout.