AnimationTimeline
MDN Web Docs · نسخهٔ df622a2a1c1e · CC BY-SA 2.5 و مجوز جداگانهٔ ناشر برای نمونهکد
{{ APIRef("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:
- {{domxref("DocumentTimeline")}}
- {{domxref("ScrollTimeline")}}
- {{domxref("ViewTimeline")}}
Instance properties
- {{domxref("AnimationTimeline.currentTime", "currentTime")}} {{ReadOnlyInline}}
- : Returns the time value in milliseconds for this timeline or
nullif this timeline is inactive. - {{domxref("AnimationTimeline.duration", "duration")}} {{ReadOnlyInline}}
- : Returns the maximum value for this timeline or
null.
Specifications
{{Specifications}}
Browser compatibility
{{Compat}}
See also
- {{domxref("DocumentTimeline")}}, {{domxref("ScrollTimeline")}}, {{domxref("ViewTimeline")}}
- {{domxref("Document.timeline")}}
- Web Animations API
- CSS scroll-driven animations