Elegant Box - MeggiTools
Run
Toggle Theme
Share Link
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Elegant Box</title> <style> body { margin: 0; font-family: 'Arial', sans-serif; background-color: #f0f0f0; display: flex; justify-content: center; align-items: center; height: 100vh; } .elegant-box { width: 400px; padding: 30px; border-radius: 10px; background: #ffffff; box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); position: relative; overflow: hidden; text-align: center; } .elegant-box::before, .elegant-box::after { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: linear-gradient(45deg, rgba(255, 0, 150, 0.5), rgba(0, 204, 255, 0.5)); transform: rotate(45deg); transition: all 0.3s ease; border-radius: 50%; z-index: 0; } .elegant-box::after { filter: blur(40px); opacity: 0.7; } .elegant-box h1 { margin: 0; font-size: 2em; color: #333; z-index: 1; } .elegant-box p { color: #555; margin: 10px 0; z-index: 1; } .icon { font-size: 2em; margin: 10px; color: #ff0096; z-index: 1; } .emoji { font-size: 3em; margin: 10px; z-index: 1; } @keyframes rotate { 0% { transform: rotate(0); } 100% { transform: rotate(360deg); } } @keyframes bounce { 0%, 20%, 50%, 80%, 100% { transform: translateY(0); } 40% { transform: translateY(-30px); } 60% { transform: translateY(-15px); } } .icon-rotate { animation: rotate 4s linear infinite; } .emoji-bounce { animation: bounce 2s infinite; } button { margin-top: 20px; padding: 10px 20px; font-size: 1em; color: #fff; background-color: #ff0096; border: none; border-radius: 5px; cursor: pointer; z-index: 1; } button:hover { background-color: #ff66b2; } </style> </head> <body> <div class="elegant-box"> <div class="icon icon-rotate">🌟</div> <h1>Elegant Box</h1> <p>This container is designed to be elegant and stylish.</p> <div class="emoji emoji-bounce">💎</div> <button type="button">Discover More</button> </div> </body> </html>