You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<pclass="note" role="note">Note, this is a more general description of event dispatch than that of CSS
300
+
Animations Level 1 <adata-link-type="biblio" href="#biblio-css3-animations">[CSS3-ANIMATIONS]</a> since it must account for the
301
+
possibility of animations being seeked using the Web Animations API <adata-link-type="biblio" href="#biblio-web-animations">[WEB-ANIMATIONS]</a>.</p>
302
+
<p>For the purpose of determining which events to dispatch, an animation can
303
+
be considered to be in one of four mutually-exclusive <dfndata-dfn-type="dfn" data-lt="event state" data-noexport="" id="event-state">event states<aclass="self-link" href="#event-state"></a></dfn> determined using the following procedure:</p>
304
+
<ol>
305
+
<lidata-md="">
306
+
<p>If the animation is <adata-link-type="dfn" href="https://w3c.github.io/web-animations/#idle-play-state">idle</a> or has no <adata-link-type="dfn" href="https://w3c.github.io/web-animations/#target-effect">target
307
+
effect</a> it is <dfndata-dfn-type="dfn" data-noexport="" id="idle">idle<aclass="self-link" href="#idle"></a></dfn>.</p>
308
+
<lidata-md="">
309
+
<p>Otherwise, if the animation has a <adata-link-type="dfn" href="https://w3c.github.io/web-animations/#current-time">current time</a> less than the <adata-link-type="dfn" href="https://w3c.github.io/web-animations/#start-delay">start delay</a> of its <adata-link-type="dfn" href="https://w3c.github.io/web-animations/#target-effect">target effect</a>, or, if the animation’s <adata-link-type="dfn" href="https://w3c.github.io/web-animations/#animation-playback-rate">playback rate</a> is less than zero and
310
+
it has a <adata-link-type="dfn" href="https://w3c.github.io/web-animations/#current-time">current time</a> less than <em>or equal</em> to the <adata-link-type="dfn" href="https://w3c.github.io/web-animations/#start-delay">start delay</a> of its <adata-link-type="dfn" href="https://w3c.github.io/web-animations/#target-effect">target effect</a>, it is <dfndata-dfn-type="dfn" data-noexport="" id="left-active">left-active<aclass="self-link" href="#left-active"></a></dfn>.</p>
311
+
<lidata-md="">
312
+
<p>Otherwise, if the animation has a <adata-link-type="dfn" href="https://w3c.github.io/web-animations/#current-time">current time</a> greater than its <adata-link-type="dfn" href="https://w3c.github.io/web-animations/#target-effect-end">target effect end</a>, or, if the animation’s <adata-link-type="dfn" href="https://w3c.github.io/web-animations/#animation-playback-rate">playback rate</a> is greater than or equal
313
+
to zero and it has a <adata-link-type="dfn" href="https://w3c.github.io/web-animations/#current-time">current time</a> greater than <em>or equal</em> to
314
+
its <adata-link-type="dfn" href="https://w3c.github.io/web-animations/#target-effect-end">target effect end</a>, it is <dfndata-dfn-type="dfn" data-noexport="" id="right-active">right-active<aclass="self-link" href="#right-active"></a></dfn>.</p>
315
+
<lidata-md="">
316
+
<p>Otherwise, it is <dfndata-dfn-type="dfn" data-noexport="" id="active">active<aclass="self-link" href="#active"></a></dfn>.</p>
317
+
</ol>
318
+
<p>Each time the animation is <adata-link-type="dfn" href="https://w3c.github.io/web-animations/#sampling">sampled</a>, the events to
319
+
dispatch are determined by comparing the <adata-link-type="dfn" href="#event-state">event state</a> before and
<p><adata-link-type="idl" href="https://drafts.csswg.org/css-animations-1/#dom-animationevent-animationiteration">animationiteration</a><em>if</em> there has been a change to the <adata-link-type="dfn" href="https://w3c.github.io/web-animations/#current-iteration">current iteration</a> of the animation’s <adata-link-type="dfn" href="https://w3c.github.io/web-animations/#target-effect">target effect</a>.</p>
<h3class="no-num heading settled" id="index-defined-here"><spanclass="content">Terms defined by this specification</span><aclass="self-link" href="#index-defined-here"></a></h3>
388
440
<ulclass="indexlist">
441
+
<li><ahref="#active">active</a><span>, in §4.2</span>
389
442
<li><ahref="#dom-animationevent-animationcancel">animationcancel</a><span>, in §4.1</span>
443
+
<li><ahref="#event-state">event state</a><span>, in §4.2</span>
444
+
<li><ahref="#idle">idle</a><span>, in §4.2</span>
445
+
<li><ahref="#left-active">left-active</a><span>, in §4.2</span>
390
446
<li><ahref="#owning-element">owning element</a><span>, in §2.1</span>
447
+
<li><ahref="#right-active">right-active</a><span>, in §4.2</span>
391
448
</ul>
392
449
<h3class="no-num heading settled" id="index-defined-elsewhere"><spanclass="content">Terms defined by reference</span><aclass="self-link" href="#index-defined-elsewhere"></a></h3>
0 commit comments