Anglais [??n??me??n] US [??n??me??n]

n En colère, animé ; production d'animation, tournage d'animation

pluriel : animations

.

propriétés d'animation CSS syntaxe

Comment utiliser l'attribut animation ?

L'attribut d'animation est un attribut abrégé, utilisé pour définir six attributs d'animation. La syntaxe de base est la suivante?: animation?: nom durée fonction de synchronisation délai itération-compte direction?

Fonction?: l'attribut d'animation est un attribut abrégé?; , utilisé pour définir six propriétés d'animation.

Syntaxe?: animation?: nom durée timing-function delay itération-count direction?;

Description?: animation-name spécifie le nom de l'image clé qui doit être lié au sélecteur. animation-duration spécifie le temps nécessaire pour terminer l'animation, en secondes ou millisecondes. animation-timing-function spécifie la courbe de vitesse de l'animation. animation-delay spécifie le délai avant le début de l'animation. animation-iteration-count spécifie le nombre de fois que l'animation doit être jouée. animation-direction spécifie si l'animation doit être jouée à l'envers à tour de r?le.?

Remarque?: Veuillez toujours spécifier l'attribut animation-duration, sinon la durée sera de 0 et l'animation ne sera pas jouée.

propriétés d'animation CSS exemple

<!DOCTYPE html>
<html>
<head>
<style> 
div
{
width:100px;
height:100px;
background:red;
position:relative;
animation:mymove 5s infinite;
-webkit-animation:mymove 5s infinite; /*Safari and Chrome*/
}

@keyframes mymove
{
from {left:0px;}
to {left:200px;}
}

@-webkit-keyframes mymove /*Safari and Chrome*/
{
from {left:0px;}
to {left:200px;}
}
</style>
</head>
<body>

<p><strong>注釋:</strong>Internet Explorer 9 以及更早的版本不支持 animation 屬性。</p>

<div></div>

</body>
</html>

Exécuter l'instance ?

Cliquez sur le bouton ??Exécuter l'instance?? pour afficher l'instance en ligne