<sk-sequence-effect>

← prev index next →

Plays several animations one after another — the SkenraAnimatable family's way to chain property changes into a timed sequence.

Remarks

A sequence effect composes child effects so each one starts after the previous finishes: only one is active at a time, and the sequence lasts as long as all of them end to end. It is the counterpart to a sk-group-effect — same idea of composing effects, but chained in time rather than stacked in parallel. Use it to choreograph steps: move, then turn, then settle.

Key attributes. The sequence carries timing that governs the chain as a whole — its iterations repeat the entire run — while each child contributes its own duration to the total. Order is the order of the children, and each step's start is synced to the previous step's end (a later sk-animation's begin referencing the earlier one's end).

Related. Its sibling sk-group-effect runs effects in parallel instead of in sequence; both compose sk-animation effects built from sk-keyframetimelines. The example shows the concrete chained form.

Serve these docs to run the live example. WebGPU needs a secure context — open this page via grunt serve rather than double-clicking the file. The Markup tab works from disk.

Attributes

AttributeTypeDefaultDescription
id <id> The element's unique identifier — the standard HTML global id attribute.
iterations <iteration-count> (<number> | Infinity) attribute only
direction <playback-direction> ("normal" | "reverse" | "alternate" | "alternate-reverse") attribute only
fill <fill-mode> ("none" | "forwards" | "backwards" | "both" | "auto") attribute only
easing <easing-function> attribute only
composite <composite-operation> ("replace" | "add" | "accumulate") Gets the composite operation for this effect.