useAnimation
Starts a reusable animation that is created using the animation()
function.
useAnimation(animation: AnimationReferenceMetadata, options: AnimationOptions | null = null): AnimationAnimateRefMetadata
Parameters
Returns
AnimationAnimateRefMetadata
: An object that contains the animation parameters.