英[??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é css animation-iteration-count syntaxe
Comment utiliser l'attribut animation-iteration-count ?
L'attribut animation-iteration-count est utilisé pour définir le nombre de fois que l'animation est jouée?; définir la valeur de l'attribut animation-iteration-count sur infini permet à l'animation de jouer dans une boucle infinie.
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.
propriété css 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