Animation

英[dɪˈleɪ ] US [dɪˈle]

n Retard, retard; temps à retarder ou à reporter

vt; retard, retard

vi. Participe présent : retardé Passé : retardé Participe passé : retardé

propriété de retard d'animation CSS3 syntaxe

Fonction : L'attribut animation-delay définit le moment où l'animation démarre. la valeur du délai d'animation est en secondes ou en millisecondes.

Syntaxe : animation-delay : time;

Description : time Facultatif. Définit le temps, en secondes ou millisecondes, à attendre avant le démarrage de l'animation. La valeur par défaut est 0.​

Remarque : Internet Explorer 9 et les versions antérieures ne prennent pas en charge l'attribut animation-delay.

L'effet de retard d'animation peut être défini avec l'attribut animation-delay, indiquant quand l'animation démarre. Mesuré en secondes ou millisecondes, la valeur par défaut est 0

propriété de retard d'animation CSS3 exemple

<!DOCTYPE html>
<html>
<head>
<style> 
div
{
width:100px;
height:100px;
background:red;
position:relative;
animation:mymove 5s infinite;
animation-delay:2s;

/*Safari and Chrome*/
-webkit-animation:mymove 5s infinite;
-webkit-animation-delay:2s;
}

@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-delay 属性。</p>

<div></div>

</body>
</html>

Exécuter l'instance »

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