英[ˌɪtəˈreɪʃn ] US [ˌɪtəˈreʃən]
n Répéter; raconter les choses [ordinateur]count
n.Nombre total ; compter; argument; argument v. Compter; calculer le total; compter...; Troisième personne du singulier: compte Pluriel: compte Participe présent: compter Passé: compté Participe passé: compté
propriété css3 animation-iteration-count syntaxe
Fonction : L'attribut animation-iteration-count définit le nombre de fois que l'animation est jouée.
Syntaxe : animation-iteration-count : n|infinite;
Description : n Définit le nombre de fois de lecture de l'animation. infinite spécifie que l'animation doit être jouée à l'infini.
Remarque : Internet Explorer 9 et les versions antérieures ne prennent pas en charge la propriété animation-iteration-count.
La lecture en boucle infinie peut être définie en définissant la valeur de l'attribut animation-iteration-count dans CSS3 sur infini. Vous pouvez également personnaliser le nombre de lectures d'animation
propriété css3 animation-iteration-count exemple
<!DOCTYPE html>
<html>
<head>
<style>
div
{
width:100px;
height:100px;
background:red;
position:relative;
animation:mymove 3s;
animation-iteration-count:3;
/* Safari and Chrome */
-webkit-animation:mymove 3s;
-webkit-animation-iteration-count:3;
}
@keyframes mymove
{
from {top:0px;}
to {top:200px;}
}
@-webkit-keyframes mymove /* Safari and Chrome */
{
from {top:0px;}
to {top:200px;}
}
</style>
</head>
<body>
<p><strong>注释:</strong>Internet Explorer 9 以及更早的版本不支持 animation-iteration-count 属性。</p>
<div></div>
</body>
</html>Exécuter l'instance »
Cliquez sur le bouton « Exécuter l'instance » pour afficher l'instance en ligne

