anim_encoder
anim_encoder copied to clipboard
requestAnimationFrame
This implementation feature detect window.requestAnimationFrame
on load and provides either an empty wrapping function if no support or a function which calls window.requestAnimationFrame
with the supplied function.
Pros:
- Give the browser the option to stop the animation when the page/tab is not in focus to save battery
Cons:
- None :dancers: