ViewTimelineOptions Class

The options of a view timeline (https://drafts.csswg.org/scroll-animations-1/#dictdef-viewtimelineoptions).

public sealed class ViewTimelineOptions

Constructors

NameDescription
ViewTimelineOptions()

ViewTimelineOptions()

ViewTimeline.cs
public ViewTimelineOptions()

No documentation is available.

Properties

NameDescription
AxisGets the axis of the timeline.
InsetGets the insets of the view progress visibility range: a string parsed as a view-timeline-inset value (e.g. "auto", "10px 20%"), or a sequence of one or two CssNumericValue or CssKeywordValue ("auto").
SubjectGets the element whose visibility in the scrollport of its nearest ancestor scroll container drives the timeline.

Gets the axis of the timeline.

public ScrollAxis Axis { get; init; }

Gets the insets of the view progress visibility range: a string parsed as a view-timeline-inset value (e.g. "auto", "10px 20%"), or a sequence of one or two CssNumericValue or CssKeywordValue ("auto").

public object? Inset { get; init; }

Gets the element whose visibility in the scrollport of its nearest ancestor scroll container drives the timeline.

public Element Subject { get; init; }