ADDITIVE Attribute | additive Property

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

Syntax

HTML <ELEMENT ADDITIVE = sType... >
Scripting [ sType = ] object.additive [ = val ]

Possible Values

> > >
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 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.

Standards Information

This property is defined in Synchronized Multimedia Integration Language (SMIL) 2.0 World Wide Web link.

Applies To

t:TRANSITIONFILTER, t:ANIMATE, t:ANIMATECOLOR, t:ANIMATEMOTION

See Also

Introduction to HTML+TIME