Web/API/KeyframeEffect/iterationComposite

From Get docs

This is an experimental technologyCheck the Browser compatibility table carefully before using this in production.


The iterationComposite property of a KeyframeEffect resolves how the animation's property value changes accumulate or override each other upon each of the animation's iterations.

Syntax

// getting
var iterationCompositeEnumeration = keyframeEffect.iterationComposite;

// setting
keyframeEffect.iterationComposite = 'replace';

Values

replace
The keyframeEffect value produced is independent of the current iteration.
accumulate
Subsequent iterations of the keyframeEffect build on the final value of the previous iteration.

Specifications

Specification Status Comment
Web Animations Level 2The definition of 'iterationComposite' in that specification. Draft Initial definition.

Browser compatibility

Update compatibility data on GitHub

Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari Android webview Chrome for Android Firefox for Android Opera for Android Safari on iOS Samsung Internet
iterationComposite Chrome

?

Edge

?

Firefox Full support 80


Full support 80


No support 63 — 79

Disabled'

Disabled' From version 63 until version 79 (exclusive): this feature is behind the dom.animations-api.compositing.enabled preference (needs to be set to true). To change preferences in Firefox, visit about:config.

IE

No support No

Opera

No support No

Safari

No support No

WebView Android

?

Chrome Android

?

Firefox Android No support 63 — 79

Disabled'

No support 63 — 79

Disabled'

Disabled' From version 63 until version 79 (exclusive): this feature is behind the dom.animations-api.compositing.enabled preference (needs to be set to true). To change preferences in Firefox, visit about:config.

Opera Android

No support No

Safari iOS

No support No

Samsung Internet Android

?

Legend

Full support  
Full support
No support  
No support
Compatibility unknown  
Compatibility unknown
User must explicitly enable this feature.'
User must explicitly enable this feature.


See also