Elegant Glass Panel - 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 Glass Panel</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 left, #ff6e7f, #bfe9ff); color: #fff; display: flex; justify-content: center; align-items: center; height: 100vh; } .panel { width: 70%; max-width: 800px; padding: 2rem; border-radius: 20px; background: rgba(255, 255, 255, 0.2); box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4); text-align: center; position: relative; animation: scaleUp 1s ease-out; } .panel::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(150deg, rgba(255, 255, 255, 0.3), rgba(0, 0, 0, 0.2)); z-index: 0; animation: gradientMotion 5s infinite alternate; } .panel-content { position: relative; z-index: 1; } h2 { font-size: 2.2rem; margin-bottom: 1rem; } p { font-size: 1.1rem; margin-bottom: 2rem; opacity: 0; animation: fadeIn 2s 1s forwards; } .btn { padding: 0.75rem 1.5rem; border: none; border-radius: 30px; background: linear-gradient(135deg, #e2c2d2, #c8c8ff); color: #fff; font-size: 1rem; cursor: pointer; transition: background 0.3s ease, transform 0.3s ease; position: relative; overflow: hidden; } .btn:hover { background: linear-gradient(135deg, #d1a6a8, #b9b9f3); transform: scale(1.1); } @keyframes scaleUp { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } } @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } @keyframes gradientMotion { from { background: linear-gradient(150deg, rgba(255, 255, 255, 0.3), rgba(0, 0, 0, 0.2)); } to { background: linear-gradient(150deg, rgba(255, 255, 255, 0.2), rgba(0, 0, 0, 0.3)); } } </style> </head> <body> <div class="panel"> <div class="panel-content"> <h2>Elegant Glass Panel</h2> <p>Discover a sleek, elegant glass panel with unique gradient effects and stylish animations.</p> <button class="btn">Explore</button> </div> </div> </body> </html>