scroll-timeline-axis
The scroll-timeline-axis property specifies the axis for scroll timelines.
Formal Syntax
[ block | inline | x | y ]#
JavaScript Access
// Access via element.style
element.style.scrollTimelineAxis = 'block';
Browser Support
| Feature | Chrome | Firefox | Safari | Edge |
|---|---|---|---|---|
| scroll-timeline-axis | 115 | 111 | 26 | 115 |
| block | 115 | — | 26 | 115 |
| inline | 115 | — | 26 | 115 |
| x | 115 | — | 26 | 115 |
| y | 115 | — | 26 | 115 |
Behind a Flag
Some browsers require enabling a flag or preference:
- scroll-timeline-axis — 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
- animation
- animation-composition
- animation-delay
- animation-direction
- animation-duration
- animation-fill-mode
- animation-iteration-count
- animation-name
- animation-play-state
- animation-range
- animation-range-end
- animation-range-start
- animation-timeline
- animation-timing-function
- scroll-timeline
- scroll-timeline-name
- timeline-scope
- transition
- transition-behavior
- transition-delay
- transition-duration
- transition-property
- transition-timing-function
- view-timeline
- view-timeline-axis
- view-timeline-inset
- view-timeline-name
- view-transition-class
- view-transition-name
- view-transition-group 🧪
- animation-range-center 🚧
- animation-trigger 🚧
- timeline-trigger 🚧
- timeline-trigger-exit-range 🚧
- timeline-trigger-exit-range-end 🚧
- timeline-trigger-exit-range-start 🚧
- timeline-trigger-name 🚧
- timeline-trigger-range 🚧
- timeline-trigger-range-end 🚧
- timeline-trigger-range-start 🚧
- timeline-trigger-source 🚧