Поделиться через


additive property

Sets or gets a value that indicates whether the animation is additive with other animations.

Syntax

JScript
val = object.additive

 

Property values

Type: String

one of the following values.

Remarks

Attribute types such as strings and Booleans, for which addition is not defined, cannot support additive animation.

The to and by attribute values that are 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." If to is used without from, and if the attribute supports addition; then the animation is defined as a hybrid of additive and nonadditive. 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 nonadditive.

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.

See also

transitionFilter

animate

animateColor

animateMotion

Introduction to HTML+TIME