Input
Output
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Multi-Step Keyframe Animation</title> <style> @keyframes complexAnimation { 0% { transform: rotate(0deg) scale(1); background-color: #3498db; } 50% { transform: rotate(180deg) scale(1.5); background-color: #e74c3c; } 100% { transform: rotate(360deg) scale(1); background-color: #2ecc71; } } .box { width: 100px; height: 100px; background-color: #3498db; animation: complexAnimation 3s ease-in-out infinite; } </style> </head> <body> <div class="box"></div> </body> </html>