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>Animation-name example</h2> <div>The name of the animation is set as "element".</div> </body> </html>