css.properties

view-timeline

The view-timeline shorthand property sets view timeline properties.

Formal Syntax

[ <'view-timeline-name'> [ <'view-timeline-axis'> || <'view-timeline-inset'> ]? ]#

See specification

JavaScript Access

// Access via element.style
element.style.viewTimeline = 'value';

Browser Support

standard | MDN ยท Spec

FeatureChromeFirefoxSafariEdge
view-timeline11511426115
none115โ€”26115

Behind a Flag

Some browsers require enabling a flag or preference:

  • view-timeline โ€” 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