JavaScript. RequestAnimationFrame

Home » Tutorials » JavaScript » JavaScript. RequestAnimationFrame
In this lesson we will talk about RequestAnimationFrame function. This function is used while animation creating. Traditionally animations are crating with setInterval method. It is clear, because animation is repeating action in time.
Drawback of setInterval using for animation creating, for every element you need to write own setInterval. RequestAnimationFrame units all animations in one method.

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.

Pin It on Pinterest

Share This