useAnimation
function
deprecatedsince v20.2
Starts a reusable animation that is created using the animation()
function.
Deprecation warning
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