<axis> CSS type

The <axis> enumerated data type specifies the scrolling direction of the scroll container controlling a scroll timeline.

Associated properties and functions

This data type is accepted in the value of the following CSS properties:

This data type is also accepted as an argument in the following CSS functions:

Syntax

The <axis> data type is defined using a keyword value chosen from the following list:

block

The 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.

inline

The 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.

x

The horizontal axis of the scroller element.

y

The vertical axis of the scroller element.

Formal syntax

<axis> = 
block |
inline |
x |
y

Specifications

Specification
Scroll-driven Animations
# typedef-axis

Browser compatibility

See also