ADDITIVE Attribute | additive Property

Internet Development Index

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

Syntax

HTML<ELEMENT ADDITIVE = sType... >
Scriptingobject.additive(val) [ = sType ]

Possible Values

sTypeString that specifies or receives one of the following values:
replaceDefault. The animation overrides the underlying value of the attribute and other lower priority animations.
sumThe 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.

Standards Information

This property is defined in Synchronized Multimedia Integration Language (SMIL) 2.0 Non-Microsoft link.

Applies To

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

See Also

Introduction to HTML+TIME