Source Code:
(back to article)
Submit
Result:
Report an issue
<!DOCTYPE html> <html> <head> <style> div { padding: 50px; animation: element 4s infinite; } @keyframes element { 0% { background-color: #8ebf42; } 50% { background-color: #1c87c9; } 100% { background-color: #d5dce8; } } </style> </head> <body> <h2>Exemple de animation-name</h2> <div>Le nom de l'animation est défini comme "element".</div> </body> </html>