--- title: animation-iteration-count slug: Web/CSS/animation-iteration-count tags: - animatie translation_of: Web/CSS/animation-iteration-count ---
Met de animation-iteration-count
CSS property beschrijf je het aantal keren dat een animatie speelt totdat de animatie stopt.
Je kunt ook de shorthand property te gebruiken om alle animatie-eigenschappen meteen in één regel in te stellen.
{{cssinfo}}
animation-iteration-count: infinite; animation-iteration-count: 3; animation-iteration-count: 2.3; animation-iteration-count: 2, 0, infinite;
infinite
<number>
1
keer is default. Negatieve waarden zijn ongeldig. Je mag ook non-integer waarden declareren om een deel van de animatie af te spelen (bijvoorbeeld 0.5
zal de helft van de animatie-cyclus afspelen).ZIe CSS animations voor voorbeelden.
Specification | Status | Comment |
---|---|---|
{{ SpecName('CSS3 Animations', '#animation-iteration-count', 'animation-iteration-count') }} | {{ Spec2('CSS3 Animations') }} | Initial definition |
{{ CompatibilityTable() }}
Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari (WebKit) |
---|---|---|---|---|---|
Basic support | {{ CompatVersionUnknown() }}{{ property_prefix("-webkit") }} {{CompatChrome(43.0)}} |
{{ CompatGeckoDesktop("5.0") }}{{ property_prefix("-moz") }} {{ CompatGeckoDesktop("16.0") }} |
10 | 12 {{ property_prefix("-o") }} 12.10 |
4.0{{ property_prefix("-webkit") }} |
Feature | Android | Chrome | Firefox Mobile (Gecko) | IE Phone | Opera Mobile | Safari Mobile | Chrome for Android |
---|---|---|---|---|---|---|---|
Basic support | {{ CompatVersionUnknown() }}{{ property_prefix("-webkit") }} | {{CompatUnknown}} | {{ CompatGeckoMobile("5.0") }}{{ property_prefix("-moz") }} {{ CompatGeckoMobile("16.0") }} |
{{ CompatUnknown() }} | {{ CompatUnknown() }} | {{ CompatUnknown() }} | {{CompatChrome(43.0)}} |