Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
mohamedkhallouq
GitHub Repository: mohamedkhallouq/content
Path: blob/main/files/en-us/web/api/animationplaybackevent/index.md
6567 views
---
title: AnimationPlaybackEvent slug: Web/API/AnimationPlaybackEvent page-type: web-api-interface browser-compat: api.AnimationPlaybackEvent
---

{{ APIRef("Web Animations") }}

The AnimationPlaybackEvent interface of the Web Animations API represents animation events.

As animations play, they report changes to their {{domxref("Animation.playState", "playState")}} through animation events.

{{InheritanceDiagram}}

Constructor

  • {{domxref("AnimationPlaybackEvent.AnimationPlaybackEvent", "AnimationPlaybackEvent()")}}

    • : Constructs a new AnimationPlaybackEvent object instance.

Instance properties

  • {{domxref("AnimationPlaybackEvent.currentTime")}} {{ReadOnlyInline}}

    • : The current time of the animation that generated the event.

  • {{domxref("AnimationPlaybackEvent.timelineTime")}} {{ReadOnlyInline}}

    • : The time value of the timeline of the animation that generated the event.

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}

See also