`<axis>` CSS type
The <axis> enumerated data type specifies the scrolling direction of the scroll container controlling a scroll timeline.
The **`<axis>`** enumerated data type specifies the scrolling direction of the scroll container controlling a [scroll timeline](/docs/Web/CSS/Guides/Scroll-driven_animations/Timelines).
The `<axis>` keyword values are used in the following [CSS functions](/docs/Web/CSS/Reference/Values/Functions) and properties:
- scroll-timeline-axis
- scroll-timeline shorthand
- scroll()
- view-timeline-axis
- view-timeline shorthand
- view()
## Syntax
Valid `<axis>` values:
- `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
## Browser compatibility
## See also
- animation-timeline
- [Scroll-driven animation timelines](/docs/Web/CSS/Guides/Scroll-driven_animations/Timelines) guide
- [CSS scroll-driven animations](/docs/Web/CSS/Guides/Scroll-driven_animations) module
Cite this
"` ` CSS type". MDN Web Docs. CC BY-SA 2.5 (MDN). https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Values/axis JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy