@@ -1093,16 +1093,30 @@ <h2 id=application><span class=secno>4. </span> Application of transitions</h2>
10931093
10941094 < p > If the current time is after the < a href ="#start-time "> start time</ a >
10951095 of the transition (that is, during the duration phase of the transition),
1096- this value is a specified style that will compute to the < a
1097- href ="#animatable-types "> result of interpolating the property</ a > using
1098- the < span > before-change style</ span > for the property as
1099- < i > V</ i > < sub > start</ sub > , using the < span > after-change style</ span > for
1100- the property as < i > V</ i > < sub > end</ sub > , and using (current time - start
1101- time) / (end time - start time) as the input to the timing function. (The
1096+ this value is a specified style that will compute to the result of
1097+ interpolating the property using the < span > before-change style</ span > for
1098+ the property as < i > V</ i > < sub > start</ sub > , using the < span > after-change
1099+ style</ span > for the property as < i > V</ i > < sub > end</ sub > , and using
1100+ (current time - start time) / (end time - start time) as the input to the
1101+ timing function (see ‘< a href ="#transition-timing-function "> < code
1102+ class =property > transition-timing-function</ code > </ a > ’). (The
11021103 < span > before-change style</ span > and < span > after-change style</ span > < a
11031104 href ="#style-change-event "> style change event</ a > in which the transition
11041105 was started.)
11051106
1107+ < p > When interpolating between two values, < i > V</ i > < sub > start</ sub > and
1108+ < i > V</ i > < sub > end</ sub > , interpolation is done using the output < i > p</ i > of
1109+ the timing function, which gives the portion of the value space that the
1110+ interpolation has crossed. Thus the result of the interpolation is
1111+ < i > V</ i > < sub > res</ sub > = (1 - < i > p</ i > ) ⋅ < i > V</ i > < sub > start</ sub > +
1112+ < i > p</ i > ⋅ < i > V</ i > < sub > end</ sub > .
1113+
1114+ < p > However, if this value (< i > V</ i > < sub > res</ sub > ) is outside the allowed
1115+ range of values for the property, then it is clamped to that range. This
1116+ can occur if < i > p</ i > is outside of the range 0 to 1, which can occur if a
1117+ timing function is specified with a < i > y1</ i > or < i > y2</ i > that is outside
1118+ the range 0 to 1.
1119+
11061120 < h2 id =reversing > < span class =secno > 5. </ span > Automatically reversing
11071121 interrupted transitions</ h2 >
11081122
@@ -1293,19 +1307,6 @@ <h2 id=transition-events><span class=secno>6. </span><a
12931307 < h2 id =animatable-types > < span class =secno > 7. </ span > < a
12941308 id =animation-of-property-types- > Animation of property types </ a > </ h2 >
12951309
1296- < p > When interpolating between two values, < i > V</ i > < sub > start</ sub > and
1297- < i > V</ i > < sub > end</ sub > , interpolation is done using the output < i > p</ i > of
1298- the timing function, which gives the portion of the value space that the
1299- interpolation has crossed. Thus the result of the interpolation is
1300- < i > V</ i > < sub > res</ sub > = (1 - < i > p</ i > ) ⋅ < i > V</ i > < sub > start</ sub > +
1301- < i > p</ i > ⋅ < i > V</ i > < sub > end</ sub > .
1302-
1303- < p > However, if this value (< i > V</ i > < sub > res</ sub > ) is outside the allowed
1304- range of values for the property, then it is clamped to that range. This
1305- can occur if < i > p</ i > is outside of the range 0 to 1, which can occur if a
1306- timing function is specified with a < i > y1</ i > or < i > y2</ i > that is outside
1307- the range 0 to 1.
1308-
13091310 < p > The following describes how each property type undergoes transition or
13101311 animation.
13111312
0 commit comments