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