Back to Content

ViewTimeline: startOffset property

files/en-us/web/api/viewtimeline/startoffset/index.md

latest770 B
Original Source

{{APIRef("Web Animations")}}

The startOffset read-only property of the {{domxref("ViewTimeline")}} interface returns a {{domxref("CSSNumericValue")}} representing the starting (0% progress) scroll position of the timeline as an offset from the start of the overflowing section of content in the scroller.

Value

A {{domxref("CSSNumericValue")}}.

Examples

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

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}

See also