This feature is not Baseline because it does not work in some of the most widely-used browsers.
The source read-only property of the ScrollTimeline interface returns a reference to the scrollable element (scroller) whose scroll position is driving the progress of the timeline and therefore the animation.
An Element.
See the main ScrollTimeline page for an example.
| Specification |
|---|
| Scroll-driven Animations> # dom-scrolltimeline-source> |
| Desktop | Mobile | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Chrome | Edge | Firefox | Opera | Safari | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | WebView Android | WebView on iOS | |
source |
115 | 115 | No | 101 | 26 | 115 | No | 77 | 26 | 23.0 | 115 | 26 |
© 2005–2025 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/ScrollTimeline/source