AnimationTimeline
Web Animations
Web Animations
The AnimationTimeline interface of the Web Animations API represents the timeline of an animation. This interface exists to define timeline features, inherited by other timeline types:
- DocumentTimeline
- ScrollTimeline
- ViewTimeline
Instance properties
- currentTime
- : Returns the time value in milliseconds for this timeline or
nullif this timeline is inactive. - duration
- : Returns the maximum value for this timeline or
null.
Specifications
Browser compatibility
See also
- DocumentTimeline, ScrollTimeline, ViewTimeline
- Document.timeline
- Web Animations API
- CSS scroll-driven animations