--- 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 --- <div>{{CSSRef}}</div> <h2 id="Übersicht">Übersicht</h2> <p>Die <a href="/de/docs/Web/CSS">CSS</a> Eigenschaft <code>animation-iteration-count</code> legt die Anzahl Wiederholungen der Animation fest.</p> <p>Meistens wird die Kurzform {{ cssxref("animation") }} genutzt, um alle Eigenschaften der Animation auf einen Blick zu haben.</p> <p>{{cssinfo}}</p> <h2 id="Syntax">Syntax</h2> {{csssyntax}} <pre>animation-iteration-count: infinite animation-iteration-count: 3 animation-iteration-count: 2.3 animation-iteration-count: 2, 0, infinite </pre> <h3 id="Werte">Werte</h3> <dl> <dt><code>infinite</code></dt> <dd>Die Animation wird unbegrenzt wiederholt.</dd> <dt><code><number></code></dt> <dd>Die Anzahl Wiederholungen der Animation. Standartmässig ist dieser Wet <code>1</code>. Negative Werte sind nicht zulässig. Es können auch Dezimalzahlen genutzt werden um nur einen Teil der Animation abzuspielen (z. B. <code>0.5</code> spielt die nur die Halbe Animation ab).</dd> </dl> <h2 id="Beispiel">Beispiel</h2> <p>Siehe <a href="/en-US/docs/CSS/Using_CSS_animations">CSS Animationen</a>.</p> <h2 id="Specifications" name="Specifications">Spezifikation</h2> <table class="standard-table"> <thead> <tr> <th scope="col">Spezifikation</th> <th scope="col">Status</th> <th scope="col">Anmerkung</th> </tr> </thead> <tbody> <tr> <td>{{ SpecName('CSS3 Animations', '#animation-iteration-count', 'animation-iteration-count') }}</td> <td>{{ Spec2('CSS3 Animations') }}</td> <td> </td> </tr> </tbody> </table> <h2 id="Browser_Compatibility" name="Browser_Compatibility">Browser Kompatibilität</h2> <p>{{Compat("css.properties.animation-iteration-count")}}</p> <h2 id="Siehe_auch">Siehe auch</h2> <ul> <li><a href="/en-US/docs/CSS/Tutorials/Using_CSS_animations" title="Tutorial about CSS animations">Using CSS animations</a></li> <li>{{ domxref("AnimationEvent", "AnimationEvent") }}</li> </ul>