Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

Revision 1088473 of AnimationPlaybackEvent

  • Revision slug: Web/API/AnimationPlaybackEvent
  • Revision title: AnimationPlaybackEvent
  • Revision id: 1088473
  • Created:
  • Creator: chrisdavidmills
  • Is current revision? No
  • Comment

Revision Content

{{ SeeCompatTable() }}{{ APIRef("Web Animations API") }}

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.

Constructor

{{domxref("AnimationPlaybackEvent.AnimationPlaybackEvent()")}}
Constructs a new AnimationPlaybackEvent object instance.

Attributes

{{domxref("AnimationPlaybackEvent.currentTime")}}
The current time of the animation that generated the event.
{{domxref("AnimationPlaybackEvent.timelineTime")}}
The time value of the timeline of the animation that generated the event.

Specifications

Specification Status Comment
{{SpecName('Web Animations', '#the-animationplaybackevent-interface', 'AnimationPlaybackEvent' )}} {{Spec2('Web Animations')}} Editor's draft.

Browser compatibility

{{CompatibilityTable}}

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
Basic support {{CompatNo}} {{CompatVersionUnknown}} {{CompatNo}} {{CompatNo}} {{CompatNo}}
Feature Android Android Webview Chrome for Android Firefox Mobile (Gecko) Firefox OS IE Mobile Opera Mobile Safari Mobile
Basic support {{CompatNo}} {{CompatNo}} {{CompatNo}} {{ CompatNo}} {{CompatNo}} {{CompatNo}} {{CompatNo}} {{CompatNo}}

See also

Revision Source

<p>{{ SeeCompatTable() }}{{ APIRef("Web Animations API") }}</p>

<p>The AnimationPlaybackEvent interface of the <a href="/en-US/docs/Web/API/Web_Animations_API">Web Animations API</a> represents animation events.</p>

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

<h2 id="Constructor">Constructor</h2>

<dl>
 <dt>{{domxref("AnimationPlaybackEvent.AnimationPlaybackEvent()")}}</dt>
 <dd>Constructs a new <code>AnimationPlaybackEvent</code> object instance.</dd>
</dl>

<h2 id="Attributes">Attributes</h2>

<dl>
 <dt>{{domxref("AnimationPlaybackEvent.currentTime")}}</dt>
 <dd>The current time of the animation that generated the event.</dd>
 <dt>{{domxref("AnimationPlaybackEvent.timelineTime")}}</dt>
 <dd>The time value of the timeline of the animation that generated the event.</dd>
</dl>

<h2 id="Specifications">Specifications</h2>

<table class="standard-table">
 <tbody>
  <tr>
   <th scope="col">Specification</th>
   <th scope="col">Status</th>
   <th scope="col">Comment</th>
  </tr>
  <tr>
   <td>{{SpecName('Web Animations', '#the-animationplaybackevent-interface', 'AnimationPlaybackEvent' )}}</td>
   <td>{{Spec2('Web Animations')}}</td>
   <td>Editor's draft.</td>
  </tr>
 </tbody>
</table>

<h2 id="Browser_compatibility">Browser compatibility</h2>

<p>{{CompatibilityTable}}</p>

<div id="compat-desktop">
<table class="compat-table">
 <tbody>
  <tr>
   <th>Feature</th>
   <th>Chrome</th>
   <th>Firefox (Gecko)</th>
   <th>Internet Explorer</th>
   <th>Opera</th>
   <th>Safari (WebKit)</th>
  </tr>
  <tr>
   <td>Basic support</td>
   <td>{{CompatNo}}</td>
   <td>{{CompatVersionUnknown}}</td>
   <td>{{CompatNo}}</td>
   <td>{{CompatNo}}</td>
   <td>{{CompatNo}}</td>
  </tr>
 </tbody>
</table>
</div>

<div id="compat-mobile">
<table class="compat-table">
 <tbody>
  <tr>
   <th>Feature</th>
   <th>Android</th>
   <th>Android Webview</th>
   <th>Chrome for Android</th>
   <th>Firefox Mobile (Gecko)</th>
   <th>Firefox OS</th>
   <th>IE Mobile</th>
   <th>Opera Mobile</th>
   <th>Safari Mobile</th>
  </tr>
  <tr>
   <td>Basic support</td>
   <td>{{CompatNo}}</td>
   <td>{{CompatNo}}</td>
   <td>{{CompatNo}}</td>
   <td>{{ CompatNo}}</td>
   <td>{{CompatNo}}</td>
   <td>{{CompatNo}}</td>
   <td>{{CompatNo}}</td>
   <td>{{CompatNo}}</td>
  </tr>
 </tbody>
</table>
</div>

<h2 id="See_also">See also</h2>

<ul>
 <li><a href="/en-US/docs/Web/API/Web_Animations_API">Web Animations API</a></li>
 <li>{{domxref("Animation.playState")}}</li>
</ul>
Revert to this revision