Class Export
export sequence(steps: AnimationMetadata[]) : AnimationSequenceMetadata
sequence
is an animation-specific function that is designed to be used inside of Angular2's
animation
DSL language. If this information is new, please navigate to the
component animations metadata
page to gain a better understanding of how animations in Angular2 are used.
sequence
Specifies a list of animation steps that are run one by one. (sequence
is used
by default when an array is passed as animation data into transition.)
The sequence
function can either be used within a group or a transition
and it will only continue to the next instruction once each of the inner animation steps
have completed.
To perform animation styling in parallel with other animation steps then have a look at the group animation function.
Usage
The steps
data that is passed into the sequence
animation function can either consist
of style or animate function calls. A call to style()
will apply
the
provided styling data immediately while a call to animate()
will apply its styling
data over a given time depending on its timing data.
Example (live demo)
exported from @angular/core/index defined in @angular/core/src/animation/metadata.ts