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
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.
Update compatibility data on GitHub
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
iterationComposite
|
Chrome
? |
Edge
? |
Firefox Full support 80 Full support 80 No support 63 — 79 Disabled' From version 63 until version 79 (exclusive): this feature is behind the |
IE
No support No |
Opera
No support No |
Safari
No support No |
WebView Android
? |
Chrome Android
? |
Firefox Android No support 63 — 79 No support 63 — 79 Disabled' From version 63 until version 79 (exclusive): this feature is behind the |
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.
KeyframeEffect.iterationComposite by Mozilla Contributors is licensed under CC-BY-SA 2.5.