Skip to content

Commit b5fd0ea

Browse files
birtlessvgeesus
authored andcommitted
Misc edits to animation model section
1 parent 0300cb5 commit b5fd0ea

2 files changed

Lines changed: 36 additions & 38 deletions

File tree

web-animations/img/animation-cascade.svg

Lines changed: 9 additions & 4 deletions
Loading

web-animations/index.html

Lines changed: 27 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -3220,12 +3220,6 @@ <h2>Animation effects</h2>
32203220
Since the result of an <a>animation effect</a> is based on the
32213221
<a>time fraction</a> and <a>current iteration</a> value, it is updated
32223222
whenever the timing model is <a title="sampling">sampled</a>.
3223-
Note that changes to the timing model caused by using the <a
3224-
href="#programming-interface">programming interface</a> do <em>not</em>
3225-
cause the animation model (and hence <a>animation effects</a>) to be
3226-
updated as described in <a
3227-
href="#script-execution-and-live-updates-to-the-model"
3228-
class="sectionRef"></a>.
32293223
</p>
32303224
<section>
32313225
<h3>Target properties</h3>
@@ -3236,8 +3230,8 @@ <h3>Target properties</h3>
32363230
<a title="target property">Target properties</a> may be CSS properties
32373231
or DOM attributes.
32383232
If a given <a>animation target</a> has an attribute with the same name
3239-
as a CSS property, any <a>target property</a> is taken to refer to to
3240-
the CSS property.
3233+
as a CSS property, any <a>target property</a> of that name is taken to
3234+
refer to to the CSS property.
32413235
</p>
32423236
<p class="note">
32433237
If there ever exists a situation where we need to animate an attribute
@@ -3251,7 +3245,7 @@ <h3>Target properties</h3>
32513245
<section>
32523246
<h3>Procedures for animating properties</h3>
32533247
<p>
3254-
In order to animate a <a>target property</a> the following procedures
3248+
In order to animate a <a>target property</a>, the following procedures
32553249
must be defined.
32563250
</p>
32573251
<ul>
@@ -3275,11 +3269,22 @@ <h3>Procedures for animating properties</h3>
32753269
multiplication) <var>V</var><sub>a</sub> represents the first term
32763270
of the operation and <var>V</var><sub>b</sub> represents the
32773271
second.
3272+
<div class="informative">
3273+
<p>
3274+
While <a title="animation addition">addition</a> can often be
3275+
expressed in terms of the same weighted sum function used to
3276+
define <a title="animation interpolation">interpolation</a>,
3277+
this is not always the case.
3278+
For example, interpolation of transform matrices involves
3279+
decomposing and interpolating the matrix components whilst
3280+
addition relies on matrix multiplication.
3281+
</p>
3282+
</div>
32783283
<li><dfn title="animation accumulation">accumulation</dfn> &mdash;
32793284
given two target property values
32803285
<var>V</var><sub>a</sub> and <var>V</var><sub>b</sub>, returns the
32813286
result, <var>V</var><sub>result</sub>, of combining
3282-
the two operands such that <var>V</var><sub>b</sub> represents
3287+
the two operands such that <var>V</var><sub>b</sub> is treated as
32833288
a <em>delta</em> from <var>V</var><sub>a</sub>.
32843289
For accumulation that is not commutative (for example,
32853290
accumulation of mismatched transform lists)
@@ -3306,18 +3311,9 @@ <h3>Procedures for animating properties</h3>
33063311
</div>
33073312
<li><dfn>distance computation</dfn> &mdash; given two target property
33083313
values <var>V</var><sub>start</sub> and
3309-
<var>V</var><sub>end</sub> calculates some notion of scalar
3314+
<var>V</var><sub>end</sub>, calculates some notion of scalar
33103315
distance between the values, <var>distance</var>.
33113316
</ul>
3312-
<p class="note">
3313-
While <a title="animation addition">addition</a> can often be
3314-
expressed in terms of the same weighted sum function used to define <a
3315-
title="animation interpolation">interpolation</a>, this is not always
3316-
the case.
3317-
For example, interpolation of transform matrices involves
3318-
decomposing and interpolating the matrix components whilst addition
3319-
relies on matrix multiplication.
3320-
</p>
33213317
</section>
33223318
<section>
33233319
<h3>Specific animation behaviors</h3>
@@ -3388,7 +3384,8 @@ <h4>Not animatable</h4>
33883384
An <a>animation effect</a> that targets a property that is
33893385
<a>not animatable</a> will still exhibit the usual behavior for
33903386
a <a>timed item</a> such as occupying time in an <a>animation
3391-
sequence</a>.
3387+
sequence</a> and delaying the firing of a <a>player</a>'s <a
3388+
title="finish player event">finish event</a>.
33923389
</p>
33933390
</section>
33943391
<section>
@@ -3689,24 +3686,20 @@ <h3>Intermediate animation values</h3>
36893686
<a>underlying value</a>, an <a>animation effect</a> produces
36903687
an <dfn>intermediate animation value</dfn> for each <a>animatable</a>
36913688
<a>target property</a>.
3692-
Before being applied to the <a title="target property">target
3693-
properties</a>,
3694-
these <a>intermediate animation values</a> are composed together using
3695-
the process defined in <a href="#combining-animations"
3696-
class="sectionRef"></a>.
3697-
</p>
3698-
<p>
3699-
An <a>intermediate animation value</a> is the result of
3700-
evaluating an <a>animation effect</a> for a given <a>target
3701-
property</a>, <a>time fraction</a>, <a>current iteration</a>,
3702-
and <a>underlying value</a>.
37033689
The procedure for calculating this value depends on the specific
37043690
type of <a>animation effect</a> and is defined subsequently (see <a
37053691
href="#the-intermediate-animation-value-of-a-keyframe-animation-effect"
37063692
class="sectionRef"></a> and <a
37073693
href="#the-intermediate-animation-value-of-a-motion-path-animation-effect"
37083694
class="sectionRef"></a>).
37093695
</p>
3696+
<p>
3697+
Before being applied to the <a title="target property">target
3698+
properties</a>,
3699+
these <a>intermediate animation values</a> are composed together using
3700+
the process defined in <a href="#combining-animations"
3701+
class="sectionRef"></a>.
3702+
</p>
37103703
</section>
37113704
</section>
37123705

@@ -3715,7 +3708,7 @@ <h2>Combining animations</h2>
37153708
<div class="informative">
37163709
<p>
37173710
After calculating the <a>intermediate animation values</a> for an
3718-
<a>animation effect</a> they are applied to the <a>animation
3711+
<a>animation effect</a>, they are applied to the <a>animation
37193712
effect</a>'s <a title="target property">target properties</a>.
37203713
</p>
37213714
<p>
@@ -3750,7 +3743,7 @@ <h2>Combining animations</h2>
37503743
<code>!important</code> rules.
37513744
</p>
37523745
<p>
3753-
For <a>target property</a> that specifies a DOM attribute, the
3746+
For a <a>target property</a> that specifies a DOM attribute, the
37543747
composited result is combined with the value of the attribute
37553748
specified in the DOM or the lacuna value for that attribute if it is
37563749
not specified.

0 commit comments

Comments
 (0)