ViewOrScrollTimeline

@Serializable
data class ViewOrScrollTimeline(val sourceNodeId: BackendNodeId? = null, val startOffset: Double? = null, val endOffset: Double? = null, val subjectNodeId: BackendNodeId? = null, val axis: ScrollOrientation)

Timeline instance

Official doc

Constructors

Link copied to clipboard
constructor(sourceNodeId: BackendNodeId? = null, startOffset: Double? = null, endOffset: Double? = null, subjectNodeId: BackendNodeId? = null, axis: ScrollOrientation)

Properties

Link copied to clipboard

Orientation of the scroll

Link copied to clipboard
val endOffset: Double? = null

Represents the ending scroll position of the timeline as a length offset in pixels from scroll origin.

Link copied to clipboard

Scroll container node

Link copied to clipboard
val startOffset: Double? = null

Represents the starting scroll position of the timeline as a length offset in pixels from scroll origin.

Link copied to clipboard

The element whose principal box's visibility in the scrollport defined the progress of the timeline. Does not exist for animations with ScrollTimeline