CSS animation-range-start Property
The animation-range-start property sets where a scroll-driven animation starts on its timeline.
Description
The animation-range-start property sets where on its timeline a scroll-driven animation begins, that is, the point that corresponds to the 0% keyframe. It is set by the animation-range shorthand and is paired with animation-range-end.
With a view progress timeline the start is usually a named range plus an optional offset, for example entry 20% (when the element is one fifth of the way into the scrollport) or contain 0% (when it is fully visible). A plain length or percentage is measured from the start of the whole timeline. Before the start point the animation is in its "before" phase, so whether the 0% keyframe is shown depends on animation-fill-mode.
Definition
- Initial value
- normal
- Applies to
- all elements
- Inherited
- no
- Computed value
- list, each item either normal or a length-percentage, optionally preceded by a timeline range name
- Animatable
- not animatable
- JavaScript syntax
- object.style.animationRangeStart
Interactive Demo
Scroll down ↓
Scroll down ↓
Scroll down ↓
Scroll down ↓
Scroll down ↓
Scroll down ↓
Keep scrolling ↓
Keep scrolling ↓
Keep scrolling ↓
Keep scrolling ↓
Keep scrolling ↓
Keep scrolling ↓
Syntax
animation-range-start: [ normal | <length-percentage> | <timeline-range-name> <length-percentage>? ]#;
Values
- normalThe default. The animation starts at the beginning of the timeline.
- <length-percentage>A point measured from the start of the timeline.
- <timeline-range-name> <length-percentage>?A point in a named range such as
entry,exit,coverorcontain. Without an offset, 0% of that range is used. - initialSets the property to its initial value.
- inheritTakes the computed value of the parent element.
Example
Browser Support
The following information will show you the current browser support for the CSS animation-range-start property. Hover over a browser icon to see the version that first introduced support for this CSS property.
Desktop





Tablets & Mobile





