CSS animation-range-end Property
The animation-range-end property sets where a scroll-driven animation ends on its timeline.
Description
The animation-range-end property sets where on its timeline a scroll-driven animation finishes, that is, the point that corresponds to the 100% keyframe. It is set by the animation-range shorthand and is paired with animation-range-start.
With a view progress timeline the end is usually a named range plus an optional offset, for example entry 100% (when the element has fully entered the scrollport) or cover 50% (when it is halfway through). Without an offset a named range resolves to 100% of that range. After the end point the animation is in its "after" phase, so use animation-fill-mode: forwards or both to keep the final state.
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.animationRangeEnd
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-end: [ normal | <length-percentage> | <timeline-range-name> <length-percentage>? ]#;
Values
- normalThe default. The animation ends at the end 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, 100% 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-end property. Hover over a browser icon to see the version that first introduced support for this CSS property.
Desktop





Tablets & Mobile





