Knowledge baseExam Center
ENEnglish
Choose language13

CKTIS / CSS

timeline-trigger-name — naming timeline triggers

The timeline-trigger-name property names timeline triggers. It does not select a timeline or start an animation by itself.

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

Syntax

timeline-trigger-name: none | <dashed-ident>#;

timeline-trigger-name accepts none or comma-separated <dashed-ident> identifiers, such as --reveal. The grammar’s # denotes a comma-separated list. none is the initial value and defines no triggers.

The property applies to all elements, is not inherited, and is not animatable. Its list determines the trigger list; for repeated names, only the last occurrence counts. timeline-trigger-source selects the timeline, ranges determine activation and deactivation, and animation-trigger connects an animation to a trigger. trigger-scope controls name visibility.

This is a draft-specification feature; verify support locally. The example deliberately uses timeline-trigger-source: none: it tests naming, not animation playback.

Examples

<!doctype html>
<meta charset="utf-8">
<title>timeline-trigger-name</title>
<style>
  #target {
    timeline-trigger-name: --reveal, --exit;
    timeline-trigger-source: none;
  }
</style>
<div id="target">Trigger names</div>
<pre id="result"></pre>
<script>
  const property = 'timeline-trigger-name';
  const target = document.getElementById('target');
  document.getElementById('result').textContent =
    CSS.supports(property, '--reveal, --exit')
      ? getComputedStyle(target).getPropertyValue(property).trim()
      : 'Unsupported';
</script>

Result

--reveal, --exit

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