Back to Content

AnimationTimeline

files/en-us/web/api/animationtimeline/index.md

latest1.0 KB
Original Source

{{ 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 null if 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