sequence
function
stable
Defines a list of animation steps to be run sequentially, one by one.
API
function sequence( steps: AnimationMetadata[], options?: AnimationOptions | null): AnimationSequenceMetadata;
sequence
Defines a list of animation steps to be run sequentially, one by one.
@paramoptions
AnimationOptions | nullAn options object containing a delay and developer-defined parameters that provide styling defaults and can be overridden on invocation.
@returns
AnimationSequenceMetadataUsage Notes
When you pass an array of steps to a
transition() call, the steps run sequentially by default.
Compare this to the group() call, which runs animation steps in
parallel.
When a sequence is used within a group() or a transition() call,
execution continues to the next instruction only after each of the inner animation
steps have completed.
Jump to details