Source Code:
(back to article)
Submit
Result:
Report an issue
<!DOCTYPE html> <html> <head> <title>Titre du document</title> <style> .element { padding: 50px; animation: backgrounds 4s infinite; } @keyframes backgrounds { 0% { background-color: #8ebf42} 50% { background-color: #1c87c9; } 100% { background-color: #ccc; } } </style> </head> <body> <h2>Exemple de @keyframes</h2> <div class="element">L'arrière-plan de ce texte est animé.</div> </body> </html>