Animation Addition Attributes#
additive#
additive = 'replace | sum'
控制动画是否是累加的。
值 |
描述 |
---|---|
|
指定动画将会加到属性的基础值和其他低优先级的动画上。 |
|
指定动画将会覆盖属性的基础值和其他低优先级的动画。这是默认值,但行为也会受到动画值属性 by 和 to 的影响,正如在 SMIL 动画中所描述的:from、to 和 by 属性如何影响累加行为。 |
additive = 'replace | sum'
Controls whether or not the animation is additive.
accumulate#
accumulate = 'none | sum'
Controls whether or not the animation is cumulative.
value |
description |
---|---|
|
Specifies that each repeat iteration after the first builds upon the last value of the previous iteration. |
|
Specifies that repeat iterations are not cumulative. This is the default. |
This attribute is ignored if the target attribute value does not support addition, or if the animation element does not repeat.
Cumulative animation is not defined for “to animation”.
This attribute will be ignored if the animation function is specified with only the to attribute.