Exécuter
❯
Exécuter le code
Ctrl+Alt+R
Sauvegarder le code
Ctrl+Alt+A
Changer d'orientation
Ctrl+Alt+O
Changer de thème
Ctrl+Alt+D
<!DOCTYPE html> <html> <head> <style> div { largeur: 100px; hauteur: 100px; arrière-plan: rouge; position: relative; animation-name: myAnimation; animation-duration: 3s; animation-delay: 2s; animation-fill-mode: backwards; } @keyframes myAnimation { from {top: 0px; background-color: yellow;} à {top: 200px;} } </style> </head> <body> <h1>Propriété animation-fill-mode CSS</h1> <p>Laissez l'élément div obtenir les valeurs de style définies par la première image clé avant le début de l'animation (pendant la période de délai d'animation) :</p> <div></div> </body> </html>