CSS scroll-timeline-name Property
Description
The scroll-timeline-name property defines a named scroll timeline that can later be referenced by animations. It acts as an identifier that connects a scrolling container (or the root scroller) to animations that react to scroll progress rather than time. By assigning a name to a scroll timeline, you make it reusable and decoupled from the animation itself, allowing multiple animations to respond to the same scroll-driven progression. This separation improves clarity and maintainability, especially in complex interfaces where multiple elements react to a single scrolling context.
The primary purpose of scroll-timeline-name is to establish a link between scrolling behavior and animation logic without hard-wiring those relationships directly into animation definitions. Once defined, the name can be referenced by other animation-related properties, enabling animations to advance based on how far the user has scrolled rather than elapsed time. This model makes scroll-driven animations more declarative and predictable, particularly when combined with properties like animation-timeline, which determines which timeline an animation should follow. Together, they allow animations to be synchronized with user interaction in a clean and readable way.
Another important aspect of scroll-timeline-name is how it fits into layout-aware animation design. It works alongside properties such as scroll-timeline-axis, which defines the scroll direction that drives the timeline, and can also complement view-based timelines created using view-timeline-name. This makes it possible to create rich, responsive animations that react naturally to scrolling context - such as revealing content, animating progress indicators, or coordinating motion across multiple elements - without relying on JavaScript. By naming timelines explicitly, developers gain greater control, reuse, and clarity when building advanced scroll-driven animation systems.
Definition
- Initial value
- none
- Applies to
- all elements
- Inherited
- no
- Computed value
- the keyword none or a list of CSS identifiers
- Animatable
- no
- JavaScript syntax
- object.style.scrollTimelineName
Syntax
scroll-timeline-name: [ none | <dashed-ident> ]#
Values
- noneThe default value. No scroll timeline is defined for the element.
- <dashed-ident>A custom name for the timeline. It must start with two dashes (e.g., --my-scroller). This acts as the unique ID that your animation will reference.
Example
Browser Support
The following information will show you the current browser support for the CSS scroll-timeline-name property. Hover over a browser icon to see the version that first introduced support for this CSS property.
This property is supported in some modern browsers, but not all.
Desktop
Tablets & Mobile
Last updated by CSSPortal on: 2nd January 2026
