This is an experimental technology
Check 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 2 The definition of 'iterationComposite' in that specification. |
Draft | Initial definition. |
Browser compatibility
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
iterationComposite | Chrome ? | Edge ? | Firefox
Full support
63
| IE No support No | Opera No support No | Safari No support No | WebView Android ? | Chrome Android ? | Firefox Android
Full support
63
| 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
- Web Animations API
- Property of both
KeyframeEffect
objects.