Skip to content

Commit 43098cb

Browse files
committed
Add two additional values for animation-direction: reverse and alternate-reverse .
This is as proposed in http://lists.w3.org/Archives/Public/www-style/2011May/0548.html and resolved in the group's 2012 March 28 teleconference per http://lists.w3.org/Archives/Public/www-style/2012Mar/0655.html --HG-- extra : rebase_source : 101d499b58ca032501c1245dfe5ef949b222dfc3
1 parent f70e936 commit 43098cb

File tree

2 files changed

+63
-14
lines changed

2 files changed

+63
-14
lines changed

css3-animations/Overview.html

+42-11
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,10 @@ <h2 class="no-num no-toc" id=contents>Table of contents</h2>
192192
<li><a href="#dom-interfaces-"><span class=secno>5. </span> DOM Interfaces
193193
</a>
194194

195-
<li><a href="#references"><span class=secno>6. </span>References</a>
195+
<li><a href="#acknowledgments"><span class=secno>6.
196+
</span>Acknowledgments</a>
197+
198+
<li><a href="#references"><span class=secno>7. </span>References</a>
196199
<ul class=toc>
197200
<li class=no-num><a href="#normative-references">Normative
198201
references</a>
@@ -807,13 +810,10 @@ <h3 id=the-animation-direction-property-><span class=secno>3.6. </span> The
807810

808811
<p> The <a href="#animation-direction"><code
809812
class=property>'animation-direction'</code></a> property defines whether
810-
or not the animation should play in reverse on alternate cycles. If <code
811-
class=css>alternate</code> is specified, the animation cycle iterations
812-
that are odd counts are played in the normal direction, and the animation
813-
cycle iterations that are even counts are played in a reverse direction.
814-
When an animation is played in reverse the timing functions are also
815-
reversed. For example, when played in reverse an ease-in animation would
816-
appear to be an ease-out animation.
813+
or not the animation should play in reverse on some or all cycles. When an
814+
animation is played in reverse the timing functions are also reversed. For
815+
example, when played in reverse an ease-in animation would appear to be an
816+
ease-out animation.
817817

818818
<table class=propdef>
819819
<tbody>
@@ -825,7 +825,8 @@ <h3 id=the-animation-direction-property-><span class=secno>3.6. </span> The
825825
<tr>
826826
<td> <em>Value:</em>
827827

828-
<td> normal | alternate [, [ normal | alternate ] ]*
828+
<td> normal | reverse | alternate | alternate-reverse [, [ normal |
829+
reverse | alternate | alternate-reverse ] ]*
829830

830831
<tr>
831832
<td> <em>Initial:</em>
@@ -857,6 +858,29 @@ <h3 id=the-animation-direction-property-><span class=secno>3.6. </span> The
857858

858859
<td> Same as specified value.
859860
</table>
861+
862+
<dl>
863+
<dt>normal
864+
865+
<dd>All iterations of the animation are played as specified.
866+
867+
<dt>reverse
868+
869+
<dd>All iterations of the animation are played in the reverse direction
870+
from the way they were specified.
871+
872+
<dt>alternate
873+
874+
<dd>The animation cycle iterations that are odd counts are played in the
875+
normal direction, and the animation cycle iterations that are even counts
876+
are played in a reverse direction.
877+
878+
<dt>alternate-reverse
879+
880+
<dd>The animation cycle iterations that are odd counts are played in the
881+
reverse direction, and the animation cycle iterations that are even
882+
counts are played in a normal direction.
883+
</dl>
860884
<!-- ======================================================================================================= -->
861885

862886
<h3 id=the-animation-play-state-property-><span class=secno>3.7. </span>
@@ -1556,7 +1580,13 @@ <h2 id=dom-interfaces-><span class=secno>5. </span> DOM Interfaces</h2>
15561580
</dl>
15571581
</dl>
15581582

1559-
<h2 id=references><span class=secno>6. </span>References</h2>
1583+
<h2 id=acknowledgments><span class=secno>6. </span>Acknowledgments</h2>
1584+
1585+
<p>Thanks especially to the feedback from Estelle Weyl and all the rest of
1586+
the <a href="http://lists.w3.org/Archives/Public/www-style/">www-style</a>
1587+
community.
1588+
1589+
<h2 id=references><span class=secno>7. </span>References</h2>
15601590

15611591
<h3 class=no-num id=normative-references>Normative references</h3>
15621592
<!--begin-normative-->
@@ -1649,7 +1679,8 @@ <h2 class=no-num id=property-index>Property index</h2>
16491679
<th><a class=property
16501680
href="#animation-direction">animation-direction</a>
16511681

1652-
<td>normal | alternate [, [ normal | alternate ] ]*
1682+
<td>normal | reverse | alternate | alternate-reverse [, [ normal |
1683+
reverse | alternate | alternate-reverse ] ]*
16531684

16541685
<td>normal
16551686

css3-animations/Overview.src.html

+21-3
Original file line numberDiff line numberDiff line change
@@ -731,7 +731,7 @@ <h3>
731731
The <code class="property">'animation-direction'</code> Property
732732
</h3>
733733
<p>
734-
The <code class="property">'animation-direction'</code> property defines whether or not the animation should play in reverse on alternate cycles. If <code class="css">alternate</code> is specified, the animation cycle iterations that are odd counts are played in the normal direction, and the animation cycle iterations that are even counts are played in a reverse direction. When an animation is played in reverse the timing functions are also reversed. For example, when played in reverse an ease-in animation would appear to be an ease-out animation.
734+
The <code class="property">'animation-direction'</code> property defines whether or not the animation should play in reverse on some or all cycles. When an animation is played in reverse the timing functions are also reversed. For example, when played in reverse an ease-in animation would appear to be an ease-out animation.
735735
</p>
736736
<table class="propdef">
737737
<tbody>
@@ -748,7 +748,7 @@ <h3>
748748
<em>Value:</em>
749749
</td>
750750
<td>
751-
normal | alternate [, [ normal | alternate ] ]*
751+
normal | reverse | alternate | alternate-reverse [, [ normal | reverse | alternate | alternate-reverse ] ]*
752752
</td>
753753
</tr>
754754
<tr>
@@ -800,7 +800,18 @@ <h3>
800800
</td>
801801
</tr>
802802
</tbody>
803-
</table><!-- ======================================================================================================= -->
803+
</table>
804+
<dl>
805+
<dt>normal</dt>
806+
<dd>All iterations of the animation are played as specified.</dd>
807+
<dt>reverse</dt>
808+
<dd>All iterations of the animation are played in the reverse direction from the way they were specified.</dd>
809+
<dt>alternate</dt>
810+
<dd>The animation cycle iterations that are odd counts are played in the normal direction, and the animation cycle iterations that are even counts are played in a reverse direction.</dd>
811+
<dt>alternate-reverse</dt>
812+
<dd>The animation cycle iterations that are odd counts are played in the reverse direction, and the animation cycle iterations that are even counts are played in a normal direction.</dd>
813+
</dl>
814+
<!-- ======================================================================================================= -->
804815
<h3>
805816
The <code class="property">'animation-play-state'</code> Property
806817
</h3>
@@ -1607,6 +1618,13 @@ <h2>
16071618
</dd>
16081619
</dl>
16091620

1621+
<h2 id="acknowledgments">Acknowledgments</h2>
1622+
1623+
<p>Thanks especially to the feedback from
1624+
Estelle Weyl
1625+
and all the rest of the
1626+
<a href="http://lists.w3.org/Archives/Public/www-style/">www-style</a> community.</p>
1627+
16101628
<h2>References</h2>
16111629

16121630
<h3 class="no-num">Normative references</h3>

0 commit comments

Comments
 (0)