diff --git a/Overview.bs b/Overview.bs index f1f6e25..4533f49 100644 --- a/Overview.bs +++ b/Overview.bs @@ -3657,11 +3657,6 @@ In order to animate a property, the following procedures must be defined. -* distance computation — given two property - values Vstart and - Vend, calculates some notion of scalar - distance between the values, distance. - Note that the above procedures apply to CSS computed property values (see [[#calculating-computed-keyframes]]). As a result, it is not necessary to define, for example, how to add a length value of "15pt" @@ -3707,11 +3702,6 @@ lt="animation accumulation">accumulation procedure is identical to the addition procedure for that type. -For animation types that do not define a specific procedure -for distance computation or which are defined as not -paceable, the distance computation procedure is simply -distance = 0. -
-var effect = - new KeyframeEffect([ { top: '10px' }, - { top: '20em' }, - { top: '50em' } ], - { spacing: 'paced(top)' }); -// Prints '0, 0.5, 1' -effect.getKeyframes().map(frame => frame.computedOffset).join(', '); -- - For consistency, this definition applies even when a computed value - could be calculated for each of the animation values in question. - As such, the following code fragment produces the same result. - -
-var effect = - new KeyframeEffect([ { top: '10px' }, - { top: '20px' }, - { top: '50px' } ], - { spacing: 'paced(top)' }); -// Prints '0, 0.5, 1' -effect.getKeyframes().map(frame => frame.computedOffset).join(', '); --
-elem.animate([ { color: 'blue', offset: 0 }, - { color: 'green', offset: 1/3 }, - { color: 'red', offset: 2/3 }, - { color: 'yellow', offset: 1 } ], 2000);
-elem.animate([ { color: 'blue' }, - { color: 'green' }, - { color: 'red' }, - { color: 'yellow' } ], 2000);
-elem.animate([ { left: '0px' }, - { left: '-20px' }, - { left: '100px' }, - { left: '50px' } ], 1000);
-elem.animate([ { left: '0px' }, - { left: '-20px' }, - { left: '100px' }, - { left: '50px' } ], - { duration: 1000, spacing: "paced(left)" });
-elem.animate([ { left: '0px' }, - { left: '-20px' }, - { left: '100px', offset: 0.5 }, - { left: '50px' } ], - { duration: 1000, spacing: "paced(left)" });
-- - The meaning of each value is as follows: - - : distribute - :: Use the distribute keyframe spacing mode. - : paced(<distribute | paced(<->)
<ident>
as the paced
- property.
-
- For example, paced(transform)
would indicate that
- the keyframes should be spaced such that changes to the transform property occur at
- a constant rate.
-
- If an attempt is made to set the spacing mode to a value that does not
- conform to the above grammar, a TypeError
- must be thrown and the value of the spacing mode left unaffected.
-
- If the paced property is not a property supported by the
- implementation, or is not animatable by the implementation, the spacing mode must be set to distribute.
- A property is considered to be animatable if its animation type is
- anything other than not animatable, or, for shorthand properties, if
- at least one of its component longhand properties has an animation
- type other than not animatable.
-
offset
:: The keyframe offset of the keyframe specified as
- a number between 0.0 and 1.0 inclusive or null
.
+ a number between 0.0 and 1.0 inclusive, or null
.
- This will be null
if the keyframe is
- automatically spaced using the keyframe effect's
- keyframe spacing mode.
+ This will be null
if the keyframe is to be
+ automatically spaced between adjacent keyframes.
: computedOffset
:: The computed keyframe offset for this keyframe
- calculated by applying the keyframe effect's keyframe
- spacing mode when the list of computed-offset keyframes
- was produced.
+ calculated as part of running the compute missing keyframe
+ offsets procedure.
Unlike the offset
member, the computedOffset
is never null.
@@ -6688,9 +6225,9 @@ KeyframeEffect implements AnimationEffectMutable;
used to prepare the result of this method is defined in prose below:
1. Let result be an empty sequence of objects.
- 1. Let keyframes be the result of calculating the
- computed-offset keyframes for this keyframe effect
- (see [[#computed-offset-keyframes-section]]).
+ 1. Let keyframes be the result of applying the procedure to
+ compute missing keyframe offsets to the keyframes
+ for this keyframe effect.
1. For each keyframe in keyframes
perform the following steps:
@@ -6997,14 +6534,13 @@ The meaning and allowed values of each argument is as follows:
a number between 0.0 and 1.0 inclusive or null
.
A null
value indicates that the keyframe
- should be positioned using the keyframe effect's
- keyframe spacing mode.
+ should be automatically spaced between adjacent keyframes.
Specifying an offset outside the range [0.0, 1.0] will cause
a TypeError to be thrown.
Keyframes that specify an offset must be provided in increasing
- order of offset. Overlapping offsets, however, are permitted.
+ order of offset. Adjacent and equal offsets, however, are permitted.
: easing
:: The timing function used to transform the progress of time
@@ -7241,36 +6777,8 @@ keyframes or a {{SharedKeyframeList}} object using the following procedure:
1. Append k to property keyframes.
- 1. Apply the procedure to apply spacing to a series of
- keyframes to property keyframes using a
- spacing mode of distribute.
-
- IterationCompositeOperation
enumeration