DocumentTimeline

open class DocumentTimeline(options: DocumentTimelineOptions = definedExternally) : AnimationTimeline(source)

The DocumentTimeline interface of the Web Animations API represents animation timelines, including the default document timeline (accessed via Document.timeline).

MDN Reference

Constructors

Link copied to clipboard
constructor(options: DocumentTimelineOptions = definedExternally)

Properties

Link copied to clipboard
open external val currentTime: CSSNumberish?

The currentTime read-only property of the Web Animations API's AnimationTimeline interface returns the timeline's current time in milliseconds, or null if the timeline is inactive.

Link copied to clipboard
open external val duration: CSSNumberish?

The duration read-only property of the Web Animations API's AnimationTimeline interface returns the maximum value for this timeline or null.