SVG参考手册
属性 | Attributes
additive
该属性控制动画是否是叠加的。
它通常用于将动画定义为相对于一个属性值的偏移或增量但不能定义为绝对值。该属性告知动画是否将其值添加到原始动画属性的值中。
用法上下文
Categories |
Animation addition attribute |
---|---|
Value |
replace | sum |
Animatable |
No |
Normative document |
SVG 1.1 (2nd Edition) |
sum
——动画将添加到属性和其他较低优先级动画的基础值。
replace
——动画将覆盖属性和其他较低优先级动画的基础值。这是默认的,但是其行为也受到动画值属性by
和to
的影响,参照SMIL Animation: How from, to and by attributes affect additive behavior。
实例
可用元素
以下元素可以使用该additive
属性
<animate>
<animatecolor>
<animatemotion>
<animatetransform>