Skip to content

Commit 61da22e

Browse files
committed
[web-animations-1] Inline active duration calculation into definition.
#8985 (comment)
1 parent 4dce6d1 commit 61da22e

File tree

1 file changed

+31
-30
lines changed

1 file changed

+31
-30
lines changed

web-animations-1/Overview.bs

Lines changed: 31 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -2602,23 +2602,15 @@ Animation effects {#animation-effects}
26022602
will never return a negative value.
26032603
</div>
26042604

2605-
### The active interval, duration, and delays ### {#the-active-interval}
2605+
### The active interval ### {#the-active-interval}
26062606

26072607
[=Animation effects=] define an <dfn>active interval</dfn>,
26082608
which is the period of time during which the effect
26092609
is scheduled to produce its effect
26102610
(excepting [=fill modes=],
26112611
which apply outside the [=active interval=]).
2612-
Each [=animation effect=] has only one such interval.
2613-
2614-
The lower bound of the [=active interval=]
2615-
by default corresponds to the [=start time=] of the [=associated animation=],
2616-
but can be shifted by the <dfn>start delay</dfn>,
2617-
which is a signed offset from the [=start time=] of the [=animation=].
2618-
2619-
The length of the [=active interval=] is called the <dfn>active duration</dfn>,
2620-
the calculation of which is defined in [[#calculating-the-active-duration]].
2621-
Its length determines the upper bound of the [=active interval=].
2612+
Each [=animation effect=] has only one such interval,
2613+
which is defined by its [=start delay=] and [=active duration=].
26222614

26232615
<div class=informative-bg>
26242616

@@ -2646,6 +2638,34 @@ Animation effects {#animation-effects}
26462638
</figure>
26472639
</div>
26482640

2641+
#### The start delay #### {#the-start-delay}
2642+
2643+
The lower bound of the [=active interval=]
2644+
by default corresponds to the [=start time=] of the [=associated animation=],
2645+
but can be shifted by the <dfn>start delay</dfn>,
2646+
which is a signed offset from the [=start time=] of the [=animation=].
2647+
2648+
#### The active duration #### {#the-active-duration}
2649+
2650+
The length of the [=active interval=] is called the <dfn>active duration</dfn>,
2651+
and is determined by the [=iteration duration=] and [=iteration count=]
2652+
as defined below.
2653+
Its length determines the upper bound of the [=active interval=].
2654+
2655+
<blockquote id="calculating-the-active-duration">
2656+
[=active duration=] =
2657+
<code><a>iteration duration</a> × <a>iteration count</a></code>
2658+
</blockquote>
2659+
2660+
If either the [=iteration duration=] or [=iteration count=] are zero,
2661+
the [=active duration=] is zero.
2662+
2663+
Note: This clarification is needed
2664+
since the result of infinity multiplied by zero
2665+
is undefined according to IEEE 754-2008.
2666+
2667+
#### The end delay and animation effect end time #### {#the-end-delay}
2668+
26492669
Similar to the [=start delay=],
26502670
an [=animation effect=] also has an <dfn>end delay</dfn>,
26512671
which is primarily of use when sequencing one [=animation effect=]
@@ -3165,22 +3185,6 @@ Animation effects {#animation-effects}
31653185

31663186
</div>
31673187

3168-
#### Calculating the active duration #### {#calculating-the-active-duration}
3169-
3170-
The [=active duration=] is calculated as follows:
3171-
3172-
<blockquote>
3173-
[=active duration=] =
3174-
<code><a>iteration duration</a> × <a>iteration count</a></code>
3175-
</blockquote>
3176-
3177-
If either the [=iteration duration=] or [=iteration count=] are zero,
3178-
the [=active duration=] is zero.
3179-
3180-
Note: This clarification is needed
3181-
since the result of infinity multiplied by zero
3182-
is undefined according to IEEE 754-2008.
3183-
31843188
### Direction control ### {#direction-control}
31853189

31863190
[=Animation effects=] can also be configured
@@ -3273,9 +3277,6 @@ Calculating progress {#core-animation-effect-calculations}
32733277
</figcaption>
32743278
</figure>
32753279

3276-
The process for calculating the [=active duration=]
3277-
is normatively defined in [[#calculating-the-active-duration]].
3278-
32793280
Having established the [=active duration=],
32803281
the process for transforming an [=animation effect=]’s [=local time=]
32813282
into its [=transformed progress=] ([=iteration progress=])

0 commit comments

Comments
 (0)