ADDITIVE Attribute | additive参数属性 | DHTML中文手册 |
Sets or retrieves a value that indicates whether the animation is additive with other animations.
dhtml语法
HTML <ELEMENT ADDITIVE = sType... > Scripting object.additive(val) [ = sType ]
DHTML可能的值
sType String that specifies or receives one of the following values:
replace Default. The animation overrides the underlying value of the attribute and other lower priority animations. sum The animation adds to the underlying value of the attribute and other lower priority animations. The property is read/write. The property has a default value of replace.
Remarks
Attribute types such as strings and Booleans, for which addition is not defined, cannot support additive animation.
The attribute values to and by, used to describe the animation function, can override the additive attribute in certain cases. if by is used without from, the animation is defined to be additive. this is the equivalent of additive="sum". however, if to is used without from and if the attribute supports addition, the animation is defined to be a hybrid of additive and non-additive. the underlying value is used as a starting point as with additive animation; however, the ending value specified by the to attribute overrides the underlying value as though the animation was non-additive.
the accumulate attribute should not be confused with the additive attribute. the additive attribute defines how an animation is combined with other animations and the base value of the attribute. the accumulate attribute defines only how the animation function interacts with itself, across repeat iterations.
是否符合公共标准
This property is defined in Synchronized Multimedia Integration Language (SMIL) 2.0 .
Applies To
t:TRANSITIONFILTER, t:ANIMATE, t:ANIMATECOLOR, t:ANIMATEMOTION
更多语法参考
Introduction to HTML+TIME