Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
70194d0
Document scroll-triggered animations
chrisdavidmills Feb 18, 2026
8901885
tweak fallback styles and correct range property names
chrisdavidmills Feb 18, 2026
60e1ccf
Merge branch 'main' into scroll-triggered-animations
chrisdavidmills Feb 19, 2026
4bd67a3
Add ref pages for animation-trigger and <animation-action>
chrisdavidmills Feb 20, 2026
60bbe5d
Merge branch 'main' into scroll-triggered-animations
chrisdavidmills Feb 22, 2026
85c0e99
Add timeline-trigger-name and timeline-trigger-source
chrisdavidmills Feb 23, 2026
cf303f0
Merge branch 'main' into scroll-triggered-animations
chrisdavidmills Feb 24, 2026
a233f42
Add timeline-trigger-activeation-range* properties
chrisdavidmills Feb 24, 2026
5c0d542
Merge branch 'main' into scroll-triggered-animations
chrisdavidmills Feb 25, 2026
14f9cc6
Improve reference descriptions
chrisdavidmills Feb 25, 2026
fd77657
Add timeline-trigger-active-range* ref pages
chrisdavidmills Feb 25, 2026
7519ba0
Merge branch 'main' into scroll-triggered-animations
chrisdavidmills Feb 27, 2026
973031e
update page titles, add trigger-scope page
chrisdavidmills Feb 27, 2026
c5598c7
Add timeline-trigger shorthand page
chrisdavidmills Mar 2, 2026
8041243
Add separate animation triggers module page
chrisdavidmills Mar 3, 2026
0628fc2
Update animation-action browser-compat reference
chrisdavidmills Mar 3, 2026
e75774c
Merge branch 'main' into scroll-triggered-animations
chrisdavidmills Mar 10, 2026
03203ea
Update animation-action BCD ref
chrisdavidmills Mar 10, 2026
fa4d6b0
Update files/en-us/web/css/guides/animation_triggers/using_scroll-tri…
chrisdavidmills Mar 10, 2026
7a3fdc1
Update files/en-us/web/css/guides/animation_triggers/using_scroll-tri…
chrisdavidmills Mar 10, 2026
102b33e
Update files/en-us/web/css/guides/animation_triggers/using_scroll-tri…
chrisdavidmills Mar 10, 2026
8bb3916
Update files/en-us/web/css/guides/animation_triggers/using_scroll-tri…
chrisdavidmills Mar 10, 2026
2156be5
Update files/en-us/web/css/guides/animation_triggers/using_scroll-tri…
chrisdavidmills Mar 10, 2026
0ca2677
Update files/en-us/web/css/guides/animation_triggers/using_scroll-tri…
chrisdavidmills Mar 10, 2026
995848f
Update files/en-us/web/css/guides/animation_triggers/using_scroll-tri…
chrisdavidmills Mar 10, 2026
babef3b
Update files/en-us/web/css/guides/animation_triggers/using_scroll-tri…
chrisdavidmills Mar 10, 2026
92b891d
Update files/en-us/web/css/guides/animation_triggers/using_scroll-tri…
chrisdavidmills Mar 10, 2026
2161905
Update files/en-us/web/css/guides/animation_triggers/using_scroll-tri…
chrisdavidmills Mar 10, 2026
885e38e
Update files/en-us/web/css/guides/animation_triggers/using_scroll-tri…
chrisdavidmills Mar 10, 2026
b729f8c
Update files/en-us/web/css/guides/animation_triggers/using_scroll-tri…
chrisdavidmills Mar 10, 2026
4d2e419
Update files/en-us/web/css/reference/properties/animation-trigger/ind…
chrisdavidmills Mar 10, 2026
eed4efa
Update files/en-us/web/css/reference/properties/animation-trigger/ind…
chrisdavidmills Mar 10, 2026
e902040
Update files/en-us/web/css/reference/properties/animation-trigger/ind…
chrisdavidmills Mar 10, 2026
8a59dd2
Update files/en-us/web/css/reference/properties/animation-trigger/ind…
chrisdavidmills Mar 10, 2026
d5db7eb
Update files/en-us/web/css/reference/properties/animation-trigger/ind…
chrisdavidmills Mar 10, 2026
6a65a83
Update files/en-us/web/css/reference/properties/animation-trigger/ind…
chrisdavidmills Mar 10, 2026
4695fe0
Update files/en-us/web/css/reference/properties/animation-trigger/ind…
chrisdavidmills Mar 10, 2026
670295e
Update files/en-us/web/css/reference/properties/animation-trigger/ind…
chrisdavidmills Mar 10, 2026
23193dd
Update files/en-us/web/css/reference/properties/animation-trigger/ind…
chrisdavidmills Mar 10, 2026
47c1446
Update files/en-us/web/css/reference/properties/timeline-trigger-acti…
chrisdavidmills Mar 10, 2026
43b1c16
Update files/en-us/web/css/reference/values/animation-action/index.md
chrisdavidmills Mar 10, 2026
d96df10
Update files/en-us/web/css/reference/values/animation-action/index.md
chrisdavidmills Mar 10, 2026
fa54bee
Update files/en-us/web/css/reference/properties/timeline-trigger-acti…
chrisdavidmills Mar 10, 2026
c7c5a38
Update files/en-us/web/css/reference/properties/timeline-trigger-acti…
chrisdavidmills Mar 10, 2026
f0b768e
Update files/en-us/web/css/reference/properties/timeline-trigger-acti…
chrisdavidmills Mar 10, 2026
9073144
Update files/en-us/web/css/reference/properties/timeline-trigger-acti…
chrisdavidmills Mar 10, 2026
6e10b85
Update files/en-us/web/css/reference/properties/timeline-trigger-acti…
chrisdavidmills Mar 10, 2026
71eb3c9
Update files/en-us/web/css/reference/properties/timeline-trigger-acti…
chrisdavidmills Mar 10, 2026
5fb7af0
Update files/en-us/web/css/reference/properties/timeline-trigger-acti…
chrisdavidmills Mar 10, 2026
7e5d1e4
Fixes for bramus review comments
chrisdavidmills Mar 10, 2026
9432d70
cut down multiple trigger names section
chrisdavidmills Mar 11, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 64 additions & 0 deletions files/en-us/web/css/guides/animation_triggers/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
---
title: CSS animation triggers
short-title: Animation triggers
slug: Web/CSS/Guides/Animation_triggers
page-type: css-module
spec-urls: https://drafts.csswg.org/animation-triggers-1/
sidebar: cssref
---

The **CSS animation triggers** module provides functionality for triggering standard time-based [CSS animations](/en-US/docs/Web/CSS/Guides/Animations) when a particular trigger occurs, such as the user scrolling an element to a certain scroll offset inside the viewport, or a JavaScript event firing on an element.

## Reference

### Properties

- {{cssxref("animation-trigger")}}
- {{cssxref("timeline-trigger")}} shorthand
- {{cssxref("timeline-trigger-activation-range")}} shorthand
- {{cssxref("timeline-trigger-activation-range-end")}}
- {{cssxref("timeline-trigger-activation-range-start")}}
- {{cssxref("timeline-trigger-active-range")}} shorthand
- {{cssxref("timeline-trigger-active-range-end")}}
- {{cssxref("timeline-trigger-active-range-start")}}
- {{cssxref("timeline-trigger-name")}}
- {{cssxref("timeline-trigger-source")}}
- {{cssxref("trigger-scope")}}

The CSS animation triggers module level 1 also introduces the `event-trigger`, `event-trigger-name`, and `event-trigger-source` properties. Currently, no browsers support these features.

### Data types and values

- {{cssxref("&lt;animation-action>")}}

## Guides

- [Using CSS scroll-triggered animations](/en-US/docs/Web/CSS/Guides/Animation_triggers/Using_scroll-triggered_animations)
- : A guide to implementing CSS scroll-triggered animations.

## Related concepts

- [CSS animations](/en-US/docs/Web/CSS/Guides/Animations) module
- {{cssxref("animation-timeline")}}
- {{cssxref("@keyframes")}} at-rule
- [`<keyframe-selector>`](/en-US/docs/Web/CSS/Reference/Selectors/Keyframe_selectors)
- [CSS scroll-driven animations](/en-US/docs/Web/CSS/Guides/Scroll-driven_animations) module
- {{cssxref("animation-range")}} shorthand
- {{cssxref("animation-range-end")}}
- {{cssxref("animation-range-start")}}
- {{cssxref("scroll-timeline")}} shorthand
- {{cssxref("scroll-timeline-axis")}}
- {{cssxref("scroll-timeline-name")}}
- {{cssxref("timeline-scope")}}
- {{cssxref("view-timeline")}} shorthand
- {{cssxref("view-timeline-axis")}}
- {{cssxref("view-timeline-inset")}}
- {{cssxref("view-timeline-name")}}

## Specifications

{{Specifications}}

## See also

- [CSS scroll-triggered animations are coming!](https://developer.chrome.com/blog/scroll-triggered-animations) on developer.chrome.com (2025)

Large diffs are not rendered by default.

28 changes: 25 additions & 3 deletions files/en-us/web/css/guides/animations/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -245,8 +245,6 @@ Click "Play" in the example above to see or edit the code for the animation in t
- {{cssxref("animation-timeline")}}
- {{cssxref("animation-timing-function")}}

The CSS animations module level 2 also introduces the `animation-trigger`, `animation-trigger-exit-range`, `animation-trigger-exit-range-end`, `animation-trigger-exit-range-start`, `animation-trigger-range`, `animation-trigger-range-end`, `animation-trigger-range-start`, `animation-trigger-timeline`, and `animation-trigger-type` properties. Currently, no browsers support these features.

### At-rules and descriptors

- {{cssxref("@keyframes")}}
Expand Down Expand Up @@ -280,6 +278,30 @@ All animations, even those with 0 seconds duration, throw animation events.

## Related concepts

- [CSS animation triggers](/en-US/docs/Web/CSS/Guides/Animation_triggers) module
- {{cssxref("animation-trigger")}}
- {{cssxref("timeline-trigger")}} shorthand
- {{cssxref("timeline-trigger-activation-range")}} shorthand
- {{cssxref("timeline-trigger-activation-range-end")}}
- {{cssxref("timeline-trigger-activation-range-start")}}
- {{cssxref("timeline-trigger-active-range")}} shorthand
- {{cssxref("timeline-trigger-active-range-end")}}
- {{cssxref("timeline-trigger-active-range-start")}}
- {{cssxref("timeline-trigger-name")}}
- {{cssxref("timeline-trigger-source")}}
- {{cssxref("trigger-scope")}}
- [CSS scroll-driven animations](/en-US/docs/Web/CSS/Guides/Scroll-driven_animations) module
- {{cssxref("animation-range")}} shorthand
- {{cssxref("animation-range-end")}}
- {{cssxref("animation-range-start")}}
- {{cssxref("scroll-timeline")}} shorthand
- {{cssxref("scroll-timeline-axis")}}
- {{cssxref("scroll-timeline-name")}}
- {{cssxref("timeline-scope")}}
- {{cssxref("view-timeline")}} shorthand
- {{cssxref("view-timeline-axis")}}
- {{cssxref("view-timeline-inset")}}
- {{cssxref("view-timeline-name")}}
- {{cssxref("will-change")}} CSS property
- {{cssxref("easing-function")}} data type
- [`prefers-reduced-motion`](/en-US/docs/Web/CSS/Reference/At-rules/@media/prefers-reduced-motion) media query
Expand All @@ -291,7 +313,7 @@ All animations, even those with 0 seconds duration, throw animation events.

## See also

- [CSS scroll-driven animations](/en-US/docs/Web/CSS/Guides/Scroll-driven_animations) module.
- [CSS scroll-driven animations](/en-US/docs/Web/CSS/Guides/Scroll-driven_animations) module
- Properties in the [transitions](/en-US/docs/Web/CSS/Guides/Transitions) CSS module to trigger animations based on user actions.
- The {{cssxref("interpolate-size")}} property and {{cssxref("calc-size()")}} function for enabling animations to and from [intrinsic size values](/en-US/docs/Glossary/Intrinsic_Size).
- The {{htmlelement("canvas")}} HTML element along with [canvas API](/en-US/docs/Web/API/Canvas_API) and [WebGL API](/en-US/docs/Web/API/WebGL_API) to draw graphics and animations.
Expand Down
13 changes: 13 additions & 0 deletions files/en-us/web/css/guides/scroll-driven_animations/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,18 @@ Scroll the element in the inline direction to see its background color change. S
- {{cssxref("animation-timeline")}}
- {{cssxref("@keyframes")}} at-rule
- [`<keyframe-selector>`](/en-US/docs/Web/CSS/Reference/Selectors/Keyframe_selectors)
- [CSS animation triggers](/en-US/docs/Web/CSS/Guides/Animation_triggers) module
- {{cssxref("animation-trigger")}}
- {{cssxref("timeline-trigger")}} shorthand
- {{cssxref("timeline-trigger-activation-range")}} shorthand
- {{cssxref("timeline-trigger-activation-range-end")}}
- {{cssxref("timeline-trigger-activation-range-start")}}
- {{cssxref("timeline-trigger-active-range")}} shorthand
- {{cssxref("timeline-trigger-active-range-end")}}
- {{cssxref("timeline-trigger-active-range-start")}}
- {{cssxref("timeline-trigger-name")}}
- {{cssxref("timeline-trigger-source")}}
- {{cssxref("trigger-scope")}}
- [CSS overflow](/en-US/docs/Web/CSS/Guides/Overflow) module
- {{glossary("Scroll container")}}
- [Scrollport](/en-US/docs/Glossary/Scroll_container#scrollport)
Expand All @@ -164,4 +176,5 @@ Scroll the element in the inline direction to see its background color change. S

## See also

- [Using CSS scroll-triggered animations](/en-US/docs/Web/CSS/Guides/Animation_triggers/Using_scroll-triggered_animations)
- [Animate elements on scroll with scroll-driven animations](https://developer.chrome.com/docs/css-ui/scroll-driven-animations) via developer.chrome.com (2023)
Loading
Loading