@@ -177,7 +177,7 @@ <h2 class="no-num no-toc" id=contents>Table of contents</h2>
177177 transitions </ a >
178178
179179 < li > < a href ="#reversing "> < span class =secno > 4. </ span > Automatically
180- reversing transitions </ a >
180+ reversing interrupted transitions </ a >
181181
182182 < li > < a href ="#transition-events- "> < span class =secno > 5. </ span > Transition
183183 Events </ a >
@@ -796,11 +796,35 @@ <h2 id=starting><span class=secno>3. </span> Starting of transitions</h2>
796796 class =property > transition-delay</ code > </ a > ’ properties at the time
797797 the animatable property would first have its new computed value.
798798
799- < div class =example >
799+ < div class =example id = manual-reversing-example >
800800 < p style ="display:none "> Example(s):</ p >
801801
802- < pre > li { transition: background-color linear 1s; background: blue; }
803- li:hover { transition-duration: 2s; background-color: green; }</ pre >
802+ < p > This provides a way for authors to specify different values of the
803+ ‘< code class =css > transition-*</ code > ’ properties for the
804+ “forward” and “reverse” transitions (but see < a
805+ href ="#reversing "> below</ a > for special reversing behavior when an
806+ < em > incomplete</ em > transition is interrupted). Authors can specify the
807+ value of ‘< a href ="#transition-duration "> < code
808+ class =property > transition-duration</ code > </ a > ’, ‘< a
809+ href ="#transition-timing-function "> < code
810+ class =property > transition-timing-function</ code > </ a > ’, or ‘< a
811+ href ="#transition-delay "> < code
812+ class =property > transition-delay</ code > </ a > ’ in the same rule where
813+ they specify the value that triggers the transition, or can change these
814+ properties at the same time as they change the property that triggers the
815+ transition. Since it's the new values of these ‘< code
816+ class =css > transition-*</ code > ’ properties that affect the
817+ transition, these values will be used for the transitions < em > to</ em > the
818+ associated transitioning values. For example:</ p >
819+
820+ < pre > li {
821+ transition: background-color linear 1s;
822+ background: blue;
823+ }
824+ li:hover {
825+ background-color: green;
826+ transition-duration: 2s; /* applies to the transition *to* the :hover state */
827+ }</ pre >
804828
805829 < p > When a list item with these style rules enters the :hover state, the
806830 computed ‘< a href ="#transition-duration "> < code
@@ -847,7 +871,7 @@ <h2 id=starting><span class=secno>3. </span> Starting of transitions</h2>
847871 another element that is transitioning the same property.
848872
849873 < h2 id =reversing > < span class =secno > 4. </ span > Automatically reversing
850- transitions</ h2 >
874+ interrupted transitions</ h2 >
851875
852876 < p > A common type of transition effect is when a running transition is
853877 interrupted and the property is reset to its original value. An example is
0 commit comments