css.properties

view-timeline-axis

The view-timeline-axis property specifies the axis for view timelines.

Formal Syntax

[ block | inline | x | y ]#

See specification

JavaScript Access

// Access via element.style
element.style.viewTimelineAxis = 'block';

Browser Support

standard | MDN · Spec

FeatureChromeFirefoxSafariEdge
view-timeline-axis11511426115
block11526115
inline11526115
x11526115
y11526115

Behind a Flag

Some browsers require enabling a flag or preference:

  • view-timeline-axis — firefox: #layout.css.scroll-driven-animations.enabled = true (since 114) — Now supports the x and y values, and also the deprecated horizontal and vertical values.

Related Properties