Skip to content

Commit b951865

Browse files
committed
Animations
- describe that animations with a 0 duration still respect fill mode, delay and fire events.
1 parent cbff24a commit b951865

File tree

3 files changed

+18
-5
lines changed

3 files changed

+18
-5
lines changed

css3-animations/ChangeLog

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ Changes from David Baron's feedback
1010
- animation-name is the dominant property for lists. Every other property
1111
repeats to fill whatever animation-name requires.
1212
- insertRule is now appendRule (always appends, does not replace)
13+
- describe that animations with a 0 duration still respect fill mode, delay
14+
and fire events.
1315

1416
2011-03-21 simon.fraser@apple.com
1517

css3-animations/Overview.html

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -639,10 +639,14 @@ <h3 id=the-animation-duration-property-><span class=secno>3.3. </span> The
639639
</table>
640640

641641
<p> By default the value is &lsquo;<code class=css>0</code>&rsquo;, meaning
642-
that the animation cycle is immediate (i.e. there will be no animation). A
643-
negative value for <a class=prop-name
644-
href="#animation-duration">animation-duration</a> is treated as
645-
&lsquo;<code class=css>0</code>&rsquo;.</p>
642+
that the animation cycle is immediate. A negative value for <a
643+
class=prop-name href="#animation-duration">animation-duration</a> is
644+
treated as &lsquo;<code class=css>0</code>&rsquo;. In this case <a
645+
class=prop-name href="#animation-fill-mode">animation-fill-mode</a> still
646+
applies, so an animation that fills backwards will show the value of the
647+
0% keyframe during any delay period, and an animation that fill forwards
648+
will retain the value specified at the 100% keyframe, even if the
649+
animation was instantaneous. Also, animation events are still fired.</p>
646650
<!-- ======================================================================================================= -->
647651

648652
<h3 id="animation-timing-function_tag"><span class=secno>3.4. </span> The

css3-animations/Overview.src.html

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,14 @@ <h3>
545545
</table>
546546

547547
<p>
548-
By default the value is '0', meaning that the animation cycle is immediate (i.e. there will be no animation). A negative value for <span class="prop-name">animation-duration</span> is treated as '0'.
548+
By default the value is '0', meaning that the animation cycle is
549+
immediate. A negative value for <span
550+
class="prop-name">animation-duration</span> is treated as '0'. In this
551+
case <span class="prop-name">animation-fill-mode</span> still applies,
552+
so an animation that fills backwards will show the value of the 0%
553+
keyframe during any delay period, and an animation that fill forwards
554+
will retain the value specified at the 100% keyframe, even if the
555+
animation was instantaneous. Also, animation events are still fired.
549556
</p>
550557

551558
<!-- ======================================================================================================= -->

0 commit comments

Comments
 (0)