|
29 | 29 |
|
30 | 30 | <h1>CSS Transitions Module Level 3</h1> |
31 | 31 |
|
32 | | - <h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 1 November |
| 32 | + <h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 17 November |
33 | 33 | 2009</h2> |
34 | 34 |
|
35 | 35 | <dl> |
36 | 36 | <dt>This version: |
37 | 37 |
|
38 | | - <dd> <a href="http://www.w3.org/TR/2009/ED-css3-transitions-20091101"> |
| 38 | + <dd> <a href="http://www.w3.org/TR/2009/ED-css3-transitions-20091117"> |
39 | 39 | http://dev.w3.org/csswg/css3-transitions/</a> |
40 | | - <!--http://www.w3.org/TR/2009/WD-css3-transitions-20091101--> |
| 40 | + <!--http://www.w3.org/TR/2009/WD-css3-transitions-20091117--> |
41 | 41 |
|
42 | 42 | <dt>Latest version: |
43 | 43 |
|
@@ -119,6 +119,9 @@ <h2 class="no-num no-toc" id=status>Status of this document</h2> |
119 | 119 | W3C Patent Policy</a>.</p> |
120 | 120 | <!--end-status--> |
121 | 121 |
|
| 122 | + <p> The <a href=ChangeLog>list of changes made to this specification</a> is |
| 123 | + available. |
| 124 | + |
122 | 125 | <h2 class="no-num no-toc" id=contents>Table of contents</h2> |
123 | 126 | <!--begin-toc--> |
124 | 127 |
|
@@ -149,23 +152,26 @@ <h2 class="no-num no-toc" id=contents>Table of contents</h2> |
149 | 152 | class=property>transition</code>’</span> Shorthand Property </a> |
150 | 153 | </ul> |
151 | 154 |
|
152 | | - <li><a href="#transition-events-"><span class=secno>3 </span> Transition |
| 155 | + <li><a href="#reversing"><span class=secno>3 </span> Automatically |
| 156 | + reversing transitions </a> |
| 157 | + |
| 158 | + <li><a href="#transition-events-"><span class=secno>4 </span> Transition |
153 | 159 | Events </a> |
154 | 160 |
|
155 | | - <li><a href="#animation-of-property-types-"><span class=secno>4 </span> |
| 161 | + <li><a href="#animation-of-property-types-"><span class=secno>5 </span> |
156 | 162 | Animation of property types </a> |
157 | 163 |
|
158 | | - <li><a href="#animatable-properties-"><span class=secno>5 </span> |
| 164 | + <li><a href="#animatable-properties-"><span class=secno>6 </span> |
159 | 165 | Animatable properties </a> |
160 | 166 | <ul class=toc> |
161 | | - <li><a href="#properties-from-css-"><span class=secno>5.1 </span> |
| 167 | + <li><a href="#properties-from-css-"><span class=secno>6.1 </span> |
162 | 168 | Properties from CSS </a> |
163 | 169 |
|
164 | | - <li><a href="#properties-from-svg-"><span class=secno>5.2 </span> |
| 170 | + <li><a href="#properties-from-svg-"><span class=secno>6.2 </span> |
165 | 171 | Properties from SVG </a> |
166 | 172 | </ul> |
167 | 173 |
|
168 | | - <li><a href="#references"><span class=secno>6 </span>References</a> |
| 174 | + <li><a href="#references"><span class=secno>7 </span>References</a> |
169 | 175 | <ul class=toc> |
170 | 176 | <li class=no-num><a href="#normative-references">Normative |
171 | 177 | references</a> |
@@ -692,17 +698,38 @@ <h3 id=the-transition-shorthand-property-><span class=secno>2.5 </span> The |
692 | 698 | <td> Same as specified value. |
693 | 699 | </table> |
694 | 700 |
|
695 | | - <div class=issue> What should happen when a value is changed midway through |
696 | | - a transition? One option is to simply begin a new transition from the |
697 | | - current position. However things get interesting when from/to values are |
698 | | - being flipped. For example you'd like symmetry on fade-in/fade-out hover |
699 | | - effects if the user rolls over the object and rolls out before the |
700 | | - animation finishes. This implies that there needs to be a convenient and |
701 | | - straightforward rule for running transitions in reverse under certain |
702 | | - circumstances. This could be controlled via a new property, or could |
703 | | - perhaps be done simply by detecting when the from/to values are flipped.</div> |
704 | | - |
705 | | - <h2 id=transition-events-><span class=secno>3 </span> Transition Events</h2> |
| 701 | + <h2 id=reversing><span class=secno>3 </span> Automatically reversing |
| 702 | + transitions</h2> |
| 703 | + |
| 704 | + <p> A common type of transition effect is when a running transition is |
| 705 | + interrupted and the property is reset to its original value. An example is |
| 706 | + a hover effect on an element, where the pointer enters and exits the |
| 707 | + element before the effect has completed. If the outgoing and incoming |
| 708 | + transitions are executed using their specified durations and timing |
| 709 | + functions, the resulting effect can be distractingly asymmetric. Instead, |
| 710 | + the expected behavior is that the new transition should be the reverse of |
| 711 | + what has already executed. |
| 712 | + |
| 713 | + <p> If a currently executing transition is interrupted and the |
| 714 | + transitioning property value is set to the original starting value for the |
| 715 | + interrupted transition, and no other transition-related properties have |
| 716 | + changed, then the new transition should be the reverse of the interrupted |
| 717 | + transition. The new transition will execute with a duration that is the |
| 718 | + elapsed time of the interrupted transition at the moment it was |
| 719 | + interrupted. The timing function for the new transition will be the |
| 720 | + portion of the curve traversed up to the point of reversal, followed in |
| 721 | + the opposite direction to the starting point. The new transition will not |
| 722 | + begin with a delay, even if one was specified. If the existing transition |
| 723 | + was interrupted during its delay period, the new transition will execute |
| 724 | + instantly. |
| 725 | + |
| 726 | + <p> For example, suppose there is a transition with a duration of two |
| 727 | + seconds. If this transition is interrupted after 0.5 seconds and the |
| 728 | + property value assigned to the original value, then the new transition |
| 729 | + effect will be the reverse of the original, as if it had begun 1.5 seconds |
| 730 | + in the past. |
| 731 | + |
| 732 | + <h2 id=transition-events-><span class=secno>4 </span> Transition Events</h2> |
706 | 733 |
|
707 | 734 | <p> The completion of a CSS Transition generates a corresponding <a |
708 | 735 | href="http://www.w3.org/TR/DOM-Level-2-Events/events.html">DOM Event</a>. |
@@ -845,7 +872,7 @@ <h2 id=transition-events-><span class=secno>3 </span> Transition Events</h2> |
845 | 872 | </ul> |
846 | 873 | </dl> |
847 | 874 |
|
848 | | - <h2 id=animation-of-property-types-><span class=secno>4 </span> Animation |
| 875 | + <h2 id=animation-of-property-types-><span class=secno>5 </span> Animation |
849 | 876 | of property types</h2> |
850 | 877 |
|
851 | 878 | <p> The following describes how each property type undergoes transition or |
@@ -899,10 +926,10 @@ <h2 id=animation-of-property-types-><span class=secno>4 </span> Animation |
899 | 926 | property was individually specified. |
900 | 927 | </ul> |
901 | 928 |
|
902 | | - <h2 id=animatable-properties-><span class=secno>5 </span> Animatable |
| 929 | + <h2 id=animatable-properties-><span class=secno>6 </span> Animatable |
903 | 930 | properties</h2> |
904 | 931 |
|
905 | | - <h3 id=properties-from-css-><span class=secno>5.1 </span> Properties from |
| 932 | + <h3 id=properties-from-css-><span class=secno>6.1 </span> Properties from |
906 | 933 | CSS</h3> |
907 | 934 |
|
908 | 935 | <table> |
@@ -1163,7 +1190,7 @@ <h3 id=properties-from-css-><span class=secno>5.1 </span> Properties from |
1163 | 1190 | <td>number |
1164 | 1191 | </table> |
1165 | 1192 |
|
1166 | | - <h3 id=properties-from-svg-><span class=secno>5.2 </span> Properties from |
| 1193 | + <h3 id=properties-from-svg-><span class=secno>6.2 </span> Properties from |
1167 | 1194 | SVG</h3> |
1168 | 1195 |
|
1169 | 1196 | <p> All properties defined as animatable in the SVG specification, provided |
@@ -1210,7 +1237,7 @@ <h3 id=properties-from-svg-><span class=secno>5.2 </span> Properties from |
1210 | 1237 | </tr> |
1211 | 1238 | </table> --> |
1212 | 1239 |
|
1213 | | - <h2 id=references><span class=secno>6 </span>References</h2> |
| 1240 | + <h2 id=references><span class=secno>7 </span>References</h2> |
1214 | 1241 |
|
1215 | 1242 | <h3 class=no-num id=normative-references>Normative references</h3> |
1216 | 1243 | <!--begin-normative--> |
|
0 commit comments