animation
function
Produces a reusable animation that can be invoked in another animation or sequence,
by calling the useAnimation()
function.
API
Usage Notes
function animation( steps: AnimationMetadata | AnimationMetadata[], options?: AnimationOptions | null): AnimationReferenceMetadata;
animation
Produces a reusable animation that can be invoked in another animation or sequence,
by calling the useAnimation()
function.
@paramsteps
AnimationMetadata | AnimationMetadata[]
One or more animation objects, as returned by the animate()
or sequence()
function, that form a transformation from one state to another.
A sequence is used by default when you pass an array.
@paramoptions
AnimationOptions | null
An options object that can contain a delay value for the start of the animation, and additional developer-defined parameters. Provided values for additional parameters are used as defaults, and override values can be passed to the caller on invocation.
@returns
AnimationReferenceMetadata
Jump to details