gpt-4.1-mini-2025-04-14· OpenAI
WildChat-4.8M (AI2)
Write simple page with bouncing circle
- User
Write simple page with bouncing circle
- Assistant
Sure! Here's a simple HTML page with a bouncing circle using just HTML and CSS:
html<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1" /> <title>Bouncing Circle</title> <style> body, html { height: 100%; margin: 0; background: #222; display: flex; justify-content: center; align-items: center; overflow: hidden; } .circle { width: 50px; height: 50px; background: #4CAF50; border-radius: 50%; position: relative; animation: bounce 2s ease-in-out infinite; } @keyframes bounce { 0%, 100% { top: 0; animation-timing-function: ease-in; } 50% { top: 200px; animation-timing-function: ease-out; } } </style> </head> <body> <div class="circle"></div> </body> </html>