--- title: animation-iteration-count slug: Web/CSS/animation-iteration-count tags: - animatie translation_of: Web/CSS/animation-iteration-count --- <div>{{CSSRef}} {{ SeeCompatTable() }}</div> <h2 id="Summary">Summary</h2> <p>Met de <strong><code>animation-iteration-count</code></strong> <a href="/en/CSS" title="CSS">CSS</a> property beschrijf je het aantal keren dat een animatie speelt totdat de animatie stopt.</p> <p>Je kunt ook de shorthand property te gebruiken om alle animatie-eigenschappen meteen in één regel in te stellen.</p> <p>{{cssinfo}}</p> <h2 id="Syntax">Syntax</h2> <pre class="brush:css">animation-iteration-count: infinite; animation-iteration-count: 3; animation-iteration-count: 2.3; animation-iteration-count: 2, 0, infinite; </pre> <h3 id="Values">Values</h3> <dl> <dt><code>infinite</code></dt> <dd>The animatie herhaalt zich non-stop.</dd> <dt><code><number></code></dt> <dd>Hoeveel keer een animatie zich herhaalt; <code>1</code> keer is default. Negatieve waarden zijn ongeldig. Je mag ook non-integer waarden declareren om een deel van de animatie af te spelen (bijvoorbeeld <code>0.5</code> zal de helft van de animatie-cyclus afspelen).</dd> </dl> <h3 id="Formal_syntax">Formal syntax</h3> {{csssyntax}} <h2 id="Examples">Examples</h2> <p>ZIe <a href="/en-US/docs/Web/CSS/CSS_Animations/Using_CSS_animations">CSS animations</a> voor voorbeelden.</p> <h2 id="Specifications" name="Specifications">Specifications</h2> <table class="standard-table"> <thead> <tr> <th scope="col">Specification</th> <th scope="col">Status</th> <th scope="col">Comment</th> </tr> </thead> <tbody> <tr> <td>{{ SpecName('CSS3 Animations', '#animation-iteration-count', 'animation-iteration-count') }}</td> <td>{{ Spec2('CSS3 Animations') }}</td> <td>Initial definition</td> </tr> </tbody> </table> <h2 id="Browser_Compatibility" name="Browser_Compatibility">Browser compatibility</h2> <p>{{ CompatibilityTable() }}</p> <div id="compat-desktop"> <table class="compat-table"> <tbody> <tr> <th>Feature</th> <th>Chrome</th> <th>Firefox (Gecko)</th> <th>Internet Explorer</th> <th>Opera</th> <th>Safari (WebKit)</th> </tr> <tr> <td>Basic support</td> <td>{{ CompatVersionUnknown() }}{{ property_prefix("-webkit") }}<br> {{CompatChrome(43.0)}}</td> <td>{{ CompatGeckoDesktop("5.0") }}{{ property_prefix("-moz") }}<br> {{ CompatGeckoDesktop("16.0") }}</td> <td>10 </td> <td>12 {{ property_prefix("-o") }}<br> 12.10</td> <td>4.0{{ property_prefix("-webkit") }}</td> </tr> </tbody> </table> </div> <div id="compat-mobile"> <table class="compat-table"> <tbody> <tr> <th>Feature</th> <th>Android</th> <th>Chrome</th> <th>Firefox Mobile (Gecko)</th> <th>IE Phone</th> <th>Opera Mobile</th> <th>Safari Mobile</th> <th>Chrome for Android</th> </tr> <tr> <td>Basic support</td> <td>{{ CompatVersionUnknown() }}{{ property_prefix("-webkit") }}</td> <td>{{CompatUnknown}}</td> <td>{{ CompatGeckoMobile("5.0") }}{{ property_prefix("-moz") }}<br> {{ CompatGeckoMobile("16.0") }}</td> <td>{{ CompatUnknown() }}</td> <td>{{ CompatUnknown() }}</td> <td>{{ CompatUnknown() }}</td> <td>{{CompatChrome(43.0)}}<br> </td> </tr> </tbody> </table> </div> <h2 id="See_also">See also</h2> <ul> <li><a href="/en-US/docs/Web/CSS/CSS_Animations/Using_CSS_animations" title="Tutorial about CSS animations">Using CSS animations</a></li> <li>{{ domxref("AnimationEvent", "AnimationEvent") }}</li> </ul>