useAnimationFrame
useAnimationFrame
runs a callback once every animation frame.
The callback is provided two arguments:
time
, the total duration of time since the callback was first called.delta
, the total duration of time since the last animation frame.
A Motion+ membership will give you early access to features & content, access to our private Discord, and more.
It's a one-time fee that grants lifetime access. No subscription necessary!