Knowledge baseExam Center
ENEnglish
Choose language13

CKTIS / CSS

timeline-trigger — timeline-based trigger

A shorthand defining a named trigger and its activation and deactivation ranges on a timeline. It does not attach an animation itself.

Version: CSS modules; structured CSSWG indexes reconciled with pinned MDN BCD; Chromium 152 scope gate, per-example verification still required

Syntax

timeline-trigger: none | [ <'timeline-trigger-name'> <'timeline-trigger-source'> [ <'timeline-trigger-range'> ]? ]#;

timeline-trigger sets a trigger’s name, source, and ranges. Order is mandatory: name, source, optional ranges. Commas separate triggers; none equals none none normal.

Entering the activation range activates the trigger; leaving the active range deactivates it. / separates these ranges. The active range defaults to the activation range and always contains it.

animation-trigger separately connects the trigger to an animation and its actions. This differs from continuously driving animation progress with animation-timeline.

This is a changing specification draft. Do not assume support or matching behavior without local testing.

Examples

.card {
  timeline-trigger: --reveal view() entry 100% / cover;
}

Result

Defines --reveal: activation starts at entry 100%; the active range covers cover. No animation is attached.

The displayed code and declared result were verified in an isolated environment using the method recorded in the verification evidence for this exact version.

Sources