Knowledge baseExam Center
ENEnglish
Choose language13

CKTIS / CSS

timeline-trigger-source — a trigger’s timeline

The timeline-trigger-source property selects the timeline monitored by a named trigger. It does not directly control animation progress. It belongs to the draft Animation Triggers module and requires support checks in the target browser.

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

Syntax

timeline-trigger-source: [ none | auto | [ <dashed-ident> | <scroll()> | <view()> ]+ ]#;

timeline-trigger-source assigns a timeline to a trigger named by timeline-trigger-name. Entering its activation range and leaving its active range can invoke actions specified by animation-trigger. Selecting a source alone does not start an animation.

none disconnects the timeline, preventing the trigger from performing actions. The initial value is auto; the property is neither inherited nor animatable. Commas separate entries corresponding to trigger names; spaces can combine multiple sources within one entry.

Source meanings match animation-timeline: auto means the default document timeline, <dashed-ident> references a named timeline, scroll() describes scrolling progress, and view() describes an element’s passage through a scrollport. The key distinction: a trigger source determines when to perform an action; animation-timeline determines the animation’s own progress.

This is a draft-specification feature, not an interoperability guarantee. The example checks only parsing and the computed value of none, without an animation. A positive result does not demonstrate correct triggering support; a separate behavioral test is needed.

Examples

<!doctype html>
<meta charset="utf-8">
<title>timeline-trigger-source probe</title>
<style>
  #target {
    timeline-trigger-name: --probe;
    timeline-trigger-source: none;
  }
</style>
<div id="target">Timeline source probe</div>
<pre id="result"></pre>
<script>
  const property = 'timeline-trigger-source';
  const supported = CSS.supports(property, 'none');
  const value = getComputedStyle(document.getElementById('target'))
    .getPropertyValue(property).trim();
  document.getElementById('result').textContent =
    JSON.stringify({ supported, value });
</script>

Result

{"supported":true,"value":"none"}

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