Code Playground
index.html
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Animation Playground</title> <style> * { margin: 0; padding: 0; box-sizing: border-box; } body { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%); font-family: system-ui, sans-serif; overflow: hidden; } .container { text-align: center; } .box { width: 120px; height: 120px; background: linear-gradient(45deg, #ff6b6b, #feca57); border-radius: 20px; margin: 0 auto 2rem; animation: float 3s ease-in-out infinite; box-shadow: 0 20px 40px rgba(255, 107, 107, 0.3); } @keyframes float { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-20px) rotate(5deg); } } h1 { color: white; font-size: 2.5rem; margin-bottom: 0.5rem; animation: fadeInUp 0.8s ease-out; } p { color: rgba(255, 255, 255, 0.7); font-size: 1.1rem; animation: fadeInUp 0.8s ease-out 0.2s backwards; } @keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } } </style> </head> <body> <div class="container"> <div class="box"></div> <h1>Hello, WebMotion!</h1> <p>Start editing to see your animation come to life</p> </div> </body> </html>
Preview
Quick Templates:
Gradient Animation
Spinner
Bounce