useAnimationFrame
useAnimateFrame runs a callback once every animation frame.
Usage
The callback is provided two arguments:
time: The total time in milliseconds since the callback was first called.delta: The time in milliseconds since the last animation frame.