v147 · css · covered on mdn
Timeline Named Range "scroll"
A new scroll named range keyword for view timeline animations, extending the existing set of timeline range names (cover, contain, entry, exit, entry-crossing, exit-crossing). The scroll range spans the entire scroll extent of the scroll container — from the very start to the very end — rather than being limited to the portion where the subject element is visible.
this feature is documented on MDN
MDN's timeline range names guide covers all named ranges including the new scroll range, with visual diagrams and usage examples for animation-range. gendn doesn't duplicate that here.
quick reference
| New keyword | scroll |
|---|---|
| Applies to | animation-range, animation-range-start, animation-range-end with a view timeline |
| Extent | Full scroll extent of the scroll container — start to end, independent of the subject element's visibility |
| vs. existing ranges | cover, contain, entry, exit are all constrained to the visible portion of the subject; scroll is not |
| Use case | Animating an element across the entire page scroll, or from a specific scroll position relative to the full scroll extent |
| Example | animation-range: scroll 20% scroll 80%; |
| Shipped in | Chrome 147 (desktop + Android) |
| ChromeStatus | 6522328437620736 — Timeline Named Range "scroll" |
| Spec | CSS Scroll-Driven Animations Level 1 |
Syntax
scroll is a new value of the <timeline-range-name> type, so it is accepted wherever that type is. Grammar quoted verbatim from the CSS Scroll-driven Animations Level 1 editor’s draft (fetched 2026-11-22):
animation-range-start:
[ normal | <length-percentage> | <timeline-range-name> <length-percentage>? ]#
animation-range-end:
[ normal | <length-percentage> | <timeline-range-name> <length-percentage>? ]#
animation-range:
[ <'animation-range-start'> <'animation-range-end'>? ]#
<keyframe-selector> = from | to | <percentage [0,100]> | <timeline-range-name> <percentage>
Value
From the spec definition of scroll: it “represents the full range of the scroll container on which the view progress timeline is defined.”
scroll 0%— the startmost scroll position of the scroll container underlying the view progress timeline.scroll 100%— the endmost scroll position of that scroll container.- Start and end sides resolve in the scroll container’s writing mode.
- In the
animation-rangeshorthand,animation-range: scrollalone sets the end toscroll 100%(an omitted end copies the start’s range name). - Only meaningful on a view progress timeline (
view()orview-timeline-name); a scroll progress timeline has no named ranges, so keyframes attached toscroll <percentage>are ignored there.
Examples
cover range and on the new scroll range, side by side.Source: chrome-platform-showcase — timeline-named-range-scrollProgress bar across the whole scroller
@keyframes grow {
from { transform: scaleX(0); }
to { transform: scaleX(1); }
}
/* lets the sibling bar see the timeline name */
.reader { timeline-scope: --article; }
/* the view timeline's subject, inside the scroller */
.article { view-timeline: --article block; }
.progress-bar {
transform-origin: left;
animation: grow linear both;
animation-timeline: --article;
/* whole scroll extent, not just while .article is visible */
animation-range: scroll 0% scroll 100%;
}
Feature detection
@supports (animation-range: scroll 0% scroll 100%) {
.progress-bar { animation-range: scroll 0% scroll 100%; }
}
if (CSS.supports("animation-range", "scroll 0% scroll 100%")) {
// the scroll named range is available
}
Source: scroll-animations-1 §scroll range; pattern as used by the live full-range-fade demo.
Browser compatibility
| Browser | scroll keyword | Notes |
|---|---|---|
| Chrome | 147 | <timeline-range-name> itself since 119; standard track, not experimental |
| Chrome Android | 147 | BCD mirror of Chrome |
| Edge | 147 | BCD mirror of Chrome |
| Firefox | 159 | Same release as <timeline-range-name> (159); Firefox for Android mirror |
| Safari | 26.5 | <timeline-range-name> since 26; Safari on iOS mirror |
Specifications
| Specification | Section |
|---|---|
| CSS Scroll-driven Animations Module Level 1 | § View Progress Timeline Ranges — scroll |