Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: