Elegant Shadow Container - 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 Shadow Container</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css"> <style> body { margin: 0; font-family: 'Arial', sans-serif; background: linear-gradient(to bottom right, #a1c4fd, #c2e9fb); height: 100vh; display: flex; align-items: center; justify-content: center; overflow: hidden; } .container { position: relative; width: 80%; max-width: 600px; padding: 20px; background: rgba(255, 255, 255, 0.2); border-radius: 15px; box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1), inset 0 15px 30px rgba(0, 0, 0, 0.1); animation: shadowShift 2s ease-in-out infinite; overflow: hidden; } .container::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.1)); z-index: 0; pointer-events: none; } .container-content { position: relative; z-index: 1; text-align: center; color: #333; } .container h1 { font-size: 2.5em; margin: 0; padding: 0; } .container p { font-size: 1.2em; margin-top: 10px; } .icon { font-size: 3em; margin: 20px 0; color: #a1c4fd; } @keyframes shadowShift { 0% { box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1), inset 0 15px 30px rgba(0, 0, 0, 0.1); } 50% { box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2), inset 0 20px 40px rgba(0, 0, 0, 0.2); } 100% { box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1), inset 0 15px 30px rgba(0, 0, 0, 0.1); } } </style> </head> <body> <div class="container"> <div class="container-content"> <i class="fas fa-star icon"></i> <h1>Elegant Shadow</h1> <p>Enjoy a sophisticated shadow effect with an elegant gradient background.</p> </div> </div> </body> </html>