useAnimation
function
Starts a reusable animation that is created using the animation()
function.
API
function useAnimation( animation: AnimationReferenceMetadata, options?: AnimationOptions | null): AnimationAnimateRefMetadata;
useAnimation
Starts a reusable animation that is created using the animation()
function.
@paramoptions
AnimationOptions | null
An options object that can contain a delay value for the start of the animation, and additional override values for developer-defined parameters.
@returns
AnimationAnimateRefMetadata
Jump to details