Explain it in 60 seconds
requestAnimationFrame
Frontend Engineering · Async JavaScript and the Browser · Beginner
What is requestAnimationFrame, and why use it for animations?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Runs callback before next repaint.
- Synced with display refresh rate.
- Paused in background tabs.
- Smoother than setTimeout animations.
- Use timestamp for consistent speed.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.