additive

additive attribute controls whether or not an animation is additive.

It is frequently useful to define animation as an offset or delta to an attribute's value, rather than as absolute values.

You can use this attribute with the following SVG elements:

用法注意事项

replace | sum
默认值 replace
Animatable No
sum

Specifies that the animation will add to the underlying value of the attribute and other lower priority animations.

replace

Specifies that the animation will override the underlying value of the attribute and other lower priority animations. This is the default, however the behavior is also affected by the animation value attributes by and to ,作为描述在 SMIL Animation: How from, to and by attributes affect additive behavior .

规范

规范 状态 注释
SVG Animations Level 2
The definition of 'additive' in that specification.
编者草案 无变化
Scalable Vector Graphics (SVG) 1.1 (Second Edition)
The definition of 'additive' in that specification.
推荐 初始定义

另请参阅

Found a problem with this page?

最后修改: , 由 MDN 贡献者