This feature is not Baseline because it does not work in some of the most widely-used browsers.
The subject read-only property of the ViewTimeline interface returns a reference to the subject element whose visibility within its nearest ancestor scrollable element (scroller) is driving the progress of the timeline.
An Element.
See the main ViewTimeline page for an example.
| Specification |
|---|
| Scroll-driven Animations> # dom-viewtimeline-subject> |
| Desktop | Mobile | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Chrome | Edge | Firefox | Opera | Safari | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | WebView Android | WebView on iOS | |
subject |
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/ViewTimeline/subject