Exécuter
❯
Exécuter le code
Ctrl+Alt+R
Enregistrer 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-fill-mode: forwards; } @keyframes myAnimation { de {haut: 0px;} à {top: 200px; background-color: blue;} } </style> </head> <body> <h1>Propriété CSS animation-fill-mode</h1> <p>Laissez l'élément div conserver les valeurs de style définies par le dernier keyframe lorsque l'animation se termine :</p> <div></div> </body> </html>