Custom React hook that integrates with vevet's AnimationFrame class.
This hook creates an animation frame instance, allowing for
customizable animation properties and callbacks for play, pause,
and frame events. It handles the lifecycle of the animation instance,
ensuring proper cleanup on component unmount.
Custom React hook that integrates with
vevet
'sAnimationFrame
class.This hook creates an animation frame instance, allowing for customizable animation properties and callbacks for play, pause, and frame events. It handles the lifecycle of the animation instance, ensuring proper cleanup on component unmount.
Example