group
function
Defines a list of animation steps to be run in parallel.
API
Usage Notes
function group( steps: AnimationMetadata[], options?: AnimationOptions | null): AnimationGroupMetadata;
Defines a list of animation steps to be run in parallel.
@paramsteps
AnimationMetadata[]
An array of animation step objects.
- When steps are defined by
style()
oranimate()
function calls, each call within the group is executed instantly. - To specify offset styles to be applied at a later time, define steps with
keyframes()
, or useanimate()
calls with a delay value. For example:
@paramoptions
AnimationOptions | null
An options object containing a delay and developer-defined parameters that provide styling defaults and can be overridden on invocation.
@returns
AnimationGroupMetadata
Jump to details