Kevin Powell - CommunityKP-C
Kevin Powell - Community8mo ago
41 replies
Faker

What is requestAnimationFrame and how does it work?

Hello, I'm learning a bit about canvas and requestAnimationFrame (I want to make a rectangle move), can someone explain what a requestAnimationFrame is please.

I know as its name suggest, we just draw multiple "animations". Is this something related to "FPS" or something like that? Is there a difference here please.
Was this page helpful?