transitionend

  • Revision slug: Mozilla_event_reference/transitionend
  • Revision title: transitionend
  • Revision id: 341983
  • Created:
  • Creator: teoli
  • Is current revision? No
  • Comment

Revision Content

The transitionend event is fired when a CSS transition has completed. In the case where a transition is removed before completion, such as if the {{cssxref("transition-property")}} is removed, then the event will not fire.

General info

Interface
{{domxref("TransitionEvent")}}
Bubbles
Yes
Cancelable
Yes
Target
{{domxref("document")}}, {{domxref("element")}}
Default Action
None

Properties

{{OpenEventProperties()}}{{TransitionEventProperties()}}{{CloseEventProperties()}}

Specifications

Specification Status Comment
{{SpecName("CSS3 Transitions", "#transition-events", "transitionend")}} {{ Spec2('CSS3 Transitions') }} Initial definition.

Browser compatibility

{{ CompatibilityTable() }}

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
Basic support 1.0 as webkitTransitionEnd {{ CompatGeckoDesktop("2.0") }} 10 10.5 as oTransitionEnd
12 as otransitionend
12.10 as transitionend
3.2 as webkitTransitionEnd
Feature Android Firefox Mobile (Gecko) IE Phone Opera Mobile Safari Mobile
Basic support 2.1 as webkitTransitionEnd {{ CompatGeckoMobile("2.0") }} {{ CompatUnknown() }} 10 as oTransitionEnd
12 as otransitionend
12.10 as transitionend
3.2 as webkitTransitionEnd

See also

  • The {{ domxref("TransitionEvent") }} interface and the transitionend event.
  • {{ CSS_Reference:Transitions() }}

Revision Source

<p>The <code>transitionend</code> event is fired when a <a href="/en-US/docs/CSS/Using_CSS_transitions">CSS transition</a> has completed. In the case where a transition is removed before completion, such as if the {{cssxref("transition-property")}} is removed, then the event will not fire.</p>
<h2 id="General_info">General info</h2>
<dl>
  <dt style="clear: left; float: left; text-align: right; width: 120px;">
    Interface</dt>
  <dd style="margin: 0 0 0 120px;">
    {{domxref("TransitionEvent")}}</dd>
  <dt style="clear: left; float: left; text-align: right; width: 120px;">
    Bubbles</dt>
  <dd style="margin: 0 0 0 120px;">
    Yes</dd>
  <dt style="clear: left; float: left; text-align: right; width: 120px;">
    Cancelable</dt>
  <dd style="margin: 0 0 0 120px;">
    Yes</dd>
  <dt style="clear: left; float: left; text-align: right; width: 120px;">
    Target</dt>
  <dd style="margin: 0 0 0 120px;">
    {{domxref("document")}}, {{domxref("element")}}</dd>
  <dt style="clear: left; float: left; text-align: right; width: 120px;">
    Default Action</dt>
  <dd style="margin: 0 0 0 120px;">
    None</dd>
</dl>
<h2 id="Properties">Properties</h2>
<p>{{OpenEventProperties()}}{{TransitionEventProperties()}}{{CloseEventProperties()}}</p>
<h2 id="Specifications">Specifications</h2>
<table class="standard-table">
  <thead>
    <tr>
      <th scope="col">Specification</th>
      <th scope="col">Status</th>
      <th scope="col">Comment</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>{{SpecName("CSS3 Transitions", "#transition-events", "transitionend")}}</td>
      <td>{{ Spec2('CSS3 Transitions') }}</td>
      <td>Initial definition.</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>1.0 as <code>webkitTransitionEnd</code></td>
        <td>{{ CompatGeckoDesktop("2.0") }}</td>
        <td>10</td>
        <td>10.5 as <code>oTransitionEnd</code><br />
          12 as <code>otransitionend</code><br />
          12.10 as <code>transitionend</code></td>
        <td>3.2 as <code>webkitTransitionEnd</code></td>
      </tr>
    </tbody>
  </table>
</div>
<div id="compat-mobile">
  <table class="compat-table">
    <tbody>
      <tr>
        <th>Feature</th>
        <th>Android</th>
        <th>Firefox Mobile (Gecko)</th>
        <th>IE&nbsp;Phone</th>
        <th>Opera Mobile</th>
        <th>Safari Mobile</th>
      </tr>
      <tr>
        <td>Basic support</td>
        <td>2.1 as <code>webkitTransitionEnd</code></td>
        <td>{{ CompatGeckoMobile("2.0") }}</td>
        <td>{{ CompatUnknown() }}</td>
        <td>10 as <code>oTransitionEnd</code><br />
          12 as <code>otransitionend</code><br />
          12.10 as <code>transitionend</code></td>
        <td>3.2 as <code>webkitTransitionEnd</code></td>
      </tr>
    </tbody>
  </table>
</div>
<h2 id="See_also">See also</h2>
<ul>
  <li>The {{ domxref("TransitionEvent") }} interface and the <a href="/en-US/docs/Mozilla_event_reference/transitionend" title="The 'transitionend' event"><code>transitionend</code></a> event.</li>
  <li>{{ CSS_Reference:Transitions() }}</li>
</ul>
Revert to this revision