--- title: animation-iteration-count slug: Web/CSS/animation-iteration-count tags: - CSS - CSS Animationen - CSS Eigenschaft - Experimentell - Referenz translation_of: Web/CSS/animation-iteration-count ---
Die CSS Eigenschaft animation-iteration-count legt die Anzahl Wiederholungen der Animation fest.
Meistens wird die Kurzform {{ cssxref("animation") }} genutzt, um alle Eigenschaften der Animation auf einen Blick zu haben.
{{cssinfo}}
animation-iteration-count: infinite animation-iteration-count: 3 animation-iteration-count: 2.3 animation-iteration-count: 2, 0, infinite
infinite<number>1. Negative Werte sind nicht zulässig. Es können auch Dezimalzahlen genutzt werden um nur einen Teil der Animation abzuspielen (z. B. 0.5 spielt die nur die Halbe Animation ab).Siehe CSS Animationen.
| Spezifikation | Status | Anmerkung |
|---|---|---|
| {{ SpecName('CSS3 Animations', '#animation-iteration-count', 'animation-iteration-count') }} | {{ Spec2('CSS3 Animations') }} |
{{Compat("css.properties.animation-iteration-count")}}