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;Jump to details