You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: css-transitions/Overview.src.html
+61-6Lines changed: 61 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -988,16 +988,26 @@ <h2 id="starting">
988
988
href="#transition-property">the definition of
989
989
'transition-property'</a>) in the computed value of
990
990
'transition-property'.
991
-
Corresponding to this item there are
992
-
computed values of 'transition-duration' and 'transition-delay'
991
+
Corresponding to this item there is
992
+
a <span>matching transition duration</span>,
993
+
a <span>matching transition delay</span>, and
994
+
a <span>matching transition timing function</span>
995
+
in the computed values of
996
+
'transition-duration', 'transition-delay', and 'transition-timing-function'
993
997
(see <ahref="#list-matching">the rules on matching lists</a>).
994
998
Define the <dfn>combined duration</dfn> of the transition
995
-
as the sum of max('transition-duration', ''0s'') and 'transition-delay'.
999
+
as the sum of max(matching transition duration, ''0s'') and
1000
+
the matching transition-delay.
996
1001
When the combined duration is greater than ''0s'',
997
-
then a transition starts based on the values of
998
-
'transition-duration', 'transition-delay',
999
-
and 'transition-timing-function';
1002
+
then a transition starts based on the values of the
1003
+
matching transitionduration, the matching transitiondelay,
1004
+
and the matching transition-timing-function;
1000
1005
in other cases transitions do not occur.
1006
+
The <dfn>start time</dfn> of this transition is defined as
1007
+
the time of the <span>style change event</span> plus
1008
+
the matching transition delay.
1009
+
The <dfn>end time</dfn> of this transition is defined as
1010
+
the <span>start time</span> plus the matching transition duration.
1001
1011
</p>
1002
1012
1003
1013
<p>
@@ -1032,6 +1042,50 @@ <h2 id="starting">
1032
1042
Working Group resolution from 2013-06-06 needs to be edited.
1033
1043
</p>
1034
1044
1045
+
<h2id="application">
1046
+
Application of transitions
1047
+
</h2>
1048
+
1049
+
<p>
1050
+
When a property on an element is undergoing a transition
1051
+
(that is, when or after the transition has started and before the
1052
+
<span>end time</span> of the transition)
1053
+
the transition adds a style to the CSS cascade
1054
+
at the level defined for CSS Transitions in [[CSS3CASCADE]].
1055
+
</p>
1056
+
1057
+
<p>
1058
+
Implementations must add this value to the cascade
1059
+
if and only if
1060
+
that property is not currently
1061
+
undergoing a CSS Animation ([[CSS3-ANIMATIONS]]) on the same element.
1062
+
</p>
1063
+
1064
+
<p>
1065
+
If the current time is at or before the
1066
+
<span>start time</span> of the transition
1067
+
(that is, during the delay phase of the transition),
1068
+
this value is a specified style that will compute
1069
+
to the <span>before-change style</span> in the
1070
+
<span>style change event</span> in which the transition was started.
1071
+
</p>
1072
+
1073
+
<p>
1074
+
If the current time is after the
1075
+
<span>start time</span> of the transition
1076
+
(that is, during the duration phase of the transition),
1077
+
this value is a specified style that will compute
1078
+
to the <ahref="#animatable-types">result of interpolating the property</a>
1079
+
using the <span>before-change style</span> for the property as
1080
+
<i>V</i><sub>start</sub>,
1081
+
using the <span>after-change style</span> for the property as
1082
+
<i>V</i><sub>end</sub>,
1083
+
and using (current time - start time) / (end time - start time)
1084
+
as the input to the timing function.
1085
+
(The <span>before-change style</span> and <span>after-change style</span>
1086
+
<span>style change event</span> in which the transition was started.)
1087
+
</p>
1088
+
1035
1089
<h2id="reversing">
1036
1090
Automatically reversing interrupted transitions
1037
1091
</h2>
@@ -1621,6 +1675,7 @@ <h2 id="changes">Changes since Working Draft of 12 February 2013</h2>
1621
1675
<li>Define the model for starting of transitions and their interaction with other animations more precisely:
1622
1676
<ul>
1623
1677
<li>Define the <span>before-change style</span> and <span>after-change style</span> used for the style comparison, using the new concept of a <span>style change event</span>.
1678
+
<li>Define that a CSS transition for a property does not affect computed style when a CSS Animation for the same property is running.
0 commit comments