Glassmorphism 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>Glassmorphism 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, #00c6ff, #0072ff); 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.1); border-radius: 15px; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), inset 0 4px 6px rgba(0, 0, 0, 0.1); animation: fadeIn 1.5s ease-out; overflow: hidden; } .container::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1)); z-index: 0; pointer-events: none; animation: gradientMove 10s linear infinite; } .container-content { position: relative; z-index: 1; text-align: center; color: #fff; } .container h1 { font-size: 2.5em; margin: 0; padding: 0; animation: slideIn 1s ease-out; } .container p { font-size: 1.2em; margin-top: 10px; animation: fadeInText 1s ease-in; } .icon { font-size: 3em; margin: 20px 0; color: #fff; animation: bounce 2s infinite; } @keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } } @keyframes slideIn { from { transform: translateX(-100%); } to { transform: translateX(0); } } @keyframes fadeInText { from { opacity: 0; } to { opacity: 1; } } @keyframes gradientMove { 0% { background-position: 0% 0%; } 100% { background-position: 100% 100%; } } @keyframes bounce { 0%, 20%, 50%, 80%, 100% { transform: translateY(0); } 40% { transform: translateY(-30px); } 60% { transform: translateY(-15px); } } </style> </head> <body> <div class="container"> <div class="container-content"> <i class="fas fa-cogs icon"></i> <h1>Welcome to the Future</h1> <p>Experience the most professional and attractive container design with glassmorphism effect and animations.</p> </div> </div> </body> </html>