<timeline-range-name> CSS typeThe <timeline-range-name> enumerated data type is a CSS identifier representing one of the predefined named timeline ranges inside a view progress timeline.
The <timeline-range-name> keyword values are used in keyframe selectors and the following longhand and shorthand properties:
Valid <timeline-range-name> values:
coverRepresents the full range of a view progress timeline, from the point where the subject element's start border edge first enters the scrollport's view progress visibility range (0% progress) to the point where the end border edge has completely left it (100% progress). This is the default range for view progress timelines.
containRepresents the range of a view progress timeline where the subject element is fully contained by, or fully contains, the view progress visibility range within the scrollport
0% progress), to the point where it is no longer completely contained by the scroll port (100% progress).0% progress), to the point where it no longer completely covers the scrollport (100% progress).entryRepresents the range of a view progress timeline from the point where the subject element first starts to enter the scroll port, to the point where it has completely entered the scrollport. 0% is equivalent to 0% of the cover range. 100% is equivalent to 0% of the contain range.
exitRepresents the range of a view progress timeline from the point where the subject element first starts to exit the scroll port, to the point where it has completely exited the scrollport. 0% is equivalent to 100% of the contain range. 100% is equivalent to 100% of the cover range.
entry-crossingRepresents the range during which the principal box crosses the end border edge. The start (0% progress) of the range occurs when the start border edge of the element's principal box coincides with the end edge of its view progress visibility range. The end (100%) of the range is the point at which the end border edge of the element's principal box coincides with the end edge of its view progress visibility range. The size of the range is the size of the element's principle box in the scroll direction.
exit-crossingRepresents the range where the principal box crosses the start border edge. The range start (0% progress) occurs when the start border edge of the element's principal box coincides with the start edge of its view progress visibility range. The range end (100% progress) is the point at which the end border edge of the element's principal box coincides with the start edge of its view progress visibility range. The size of the range is the size of the element's principle box in the scroll direction.
scrollRepresents the full range of the scroll container on which the view progress timeline is defined. The range start (0% progress) and end (100% progress) occur at the very start and end positions of the scroll container underlying the view progress timeline. This is the default range for scroll progress timelines.
<timeline-range-name> =
cover |
contain |
entry |
exit |
entry-crossing |
exit-crossing |
scroll
See the View timeline range visualizer.