<axis> CSS typeThe <axis> enumerated data type specifies the scrolling direction of the scroll container controlling a scroll timeline.
The <axis> keyword values are used in the following CSS functions and properties:
scroll-timeline-axisscroll-timeline shorthandscroll()view-timeline-axisview-timeline shorthandview()Valid <axis> values:
blockThe block axis of the scroller element, which is the axis in the direction perpendicular to the flow of text within a line. For horizontal writing modes, such as standard English, this is the same as y, while for vertical writing modes, it is the same as x.
inlineThe inline axis of the scroller element, which is the axis in the direction parallel to the flow of text in a line. For horizontal writing modes, this is the same as x, while for vertical writing modes, this is the same as y.
xThe horizontal axis of the scroller element.
yThe vertical axis of the scroller element.
<axis> =
block |
inline |
x |
y