This page is In Progress

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

composite

Summary

The possible values of an animation effect’s composition behavior are represented by the CompositeOperation enumeration.

Property of apis/web_animations/AnimationEffectapis/web_animations/AnimationEffect

Syntax

var result = element.composite;
element.composite = value;

Return Value

Returns an object of type ObjectObject

Returns a CompositeOperation object, specified by the CompositeOperation enumeration.

Possible values are replace, add, accumulate.


replace Corresponds to the replace composite operation value such that the animation effect overrides the underlying value it is combined with.

add Corresponds to the add composite operation value such that the animation effect is added to the underlying value with which it is combined.

accumulate Corresponds to the accumulate composite operation value such that the animation effect is accumulated on to the underlying value.