ViewOrScrollTimeline

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

Timeline instance

Constructors

Link copied to clipboard
constructor(sourceNodeId: Int? = null, startOffset: Double? = null, endOffset: Double? = null, subjectNodeId: Int? = null, axis: DOM.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
val sourceNodeId: Int? = null

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
val subjectNodeId: Int? = null

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