scroll-timeline-axis

Defines the axis of a scroll container that will drive the progress of a scroll timeline — either block (vertical) or inline (horizontal).

It is documented as part of the Scroll-driven Animations specification.

/* Usage Example */
.scroller {
  /* The animation will progress as you scroll vertically */
  scroll-timeline-axis: block;
  scroll-timeline-name: --main-timeline;
}

/* Syntax */
scroll-timeline-axis: block;
scroll-timeline-axis: inline;

/* Global values */
scroll-timeline-axis: inherit;
scroll-timeline-axis: initial;
scroll-timeline-axis: revert;
scroll-timeline-axis: revert-layer;
scroll-timeline-axis: unset;
Limited availability Since 2020 80% global usage

This feature is not Baseline because it does not work in some of the most widely-used browsers.

115+
111+
115+
Interop 2026 focus area ? Learn more →
Kinsta

Your first month is free

Managed WordPress hosting for faster sites.

Learn more

New CSS drops.

Join 600+ readers who've survived clearfix hacks.

ESC