Back to Content

ScrollTimeline: source property

files/en-us/web/api/scrolltimeline/source/index.md

latest714 B
Original Source

{{APIRef("Web Animations")}}

The source read-only property of the {{domxref("ScrollTimeline")}} interface returns a reference to the scrollable element (scroller) whose scroll position is driving the progress of the timeline and therefore the animation.

Value

An {{domxref("Element")}}.

Examples

See the main {{domxref("ScrollTimeline")}} page for an example.

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}

See also