DEV Community

Using requestAnimationFrame in ReactJS

savitapatel on December 04, 2023

“Hello, do you want to update your UI in every iteration without flickering it?” “Have you heard about this method requestAnimationFrame() before?...
Collapse
 
schemetastic profile image
Rodrigo Isaias Calix

Hey interesting post! I have wondered, what is the best approach to do animations with requestAnimationFrame time based... for example, if I want to use it to do an animation in the range of 3 seconds. I guess someone probably would need to define a FPS and use timestamps to be precise... however, what are your thoughts?

Collapse
 
roniardynt profile image
Ron

nice article