css.properties

scroll-timeline

The scroll-timeline shorthand property sets scroll timeline properties.

Formal Syntax

[ <'scroll-timeline-name'> <'scroll-timeline-axis'>? ]#

See specification

JavaScript Access

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

Browser Support

standard | MDN ยท Spec

FeatureChromeFirefoxSafariEdge
scroll-timeline11511126115
none115โ€”26115

Behind a Flag

Some browsers require enabling a flag or preference:

  • scroll-timeline โ€” firefox: #layout.css.scroll-driven-animations.enabled = true (since 111) โ€” The syntax of the shorthand property uses the fixed order of name and then the axis.

Related Properties