Skip to content

Commit b90ae6c

Browse files
george-steelstephenmcgruer
authored andcommitted
[css-transitions-2] Add section of transition-timing-function and getComputedTiming (issue #4288) (#4306)
1 parent ebda50a commit b90ae6c

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

css-transitions-2/Overview.bs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,17 @@ sub-property that is animatable. The <dfn>expanded transition property
8080
name</dfn> of a transition is the name of the longhand sub-property for which
8181
the transition was generated (e.g. 'border-left-width').
8282

83+
## The transition timing function ## {#transition-timing-function}
84+
85+
When creating a {{KeyframeEffect}} for a transition, the effect's {{EffectTiming/easing}}
86+
option is set to the value of the matching 'transition-timing-function' property,
87+
which must be used by {{AnimationEffect/getComputedTiming()}}.
88+
89+
Note: Unlike CSS animations, the timing function for CSS transitions applies to
90+
the animation effect as opposed to the individual keyframes since this allows
91+
it to be reflected in the <a>transformed progress</a> as used when calculating
92+
the reversing shortening factor.
93+
8394
## Owning element ## {#owning-element-section}
8495

8596
The <dfn>owning element</dfn> of a transition refers to the element or

web-animations-1/Overview.bs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2980,7 +2980,7 @@ function</a>.
29802980

29812981
<h4 id="calculating-the-transformed-progress">Calculating the transformed progress</h4>
29822982

2983-
The <dfn>transformed progress</dfn> is calculated from the
2983+
The <dfn export>transformed progress</dfn> is calculated from the
29842984
<a>directed progress</a> using the following steps:
29852985

29862986
1. If the <a>directed progress</a> is <a>unresolved</a>,

0 commit comments

Comments
 (0)