Frosted Glass Card - 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>Frosted Glass Card</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 right, #00c6ff, #0072ff); color: #fff; display: flex; justify-content: center; align-items: center; height: 100vh; } .card { width: 80%; max-width: 600px; padding: 2rem; border-radius: 15px; background: rgba(255, 255, 255, 0.3); box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3); text-align: center; position: relative; animation: fadeInUp 1s ease-out; } .card::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(120deg, rgba(255, 255, 255, 0.2), rgba(0, 0, 0, 0.1)); z-index: 0; animation: gradientShift 4s infinite alternate; } .card-content { position: relative; z-index: 1; } h2 { font-size: 2rem; margin-bottom: 1rem; } p { font-size: 1rem; margin-bottom: 2rem; opacity: 0; animation: fadeIn 2s 1s forwards; } .btn { padding: 0.75rem 1.5rem; border: none; border-radius: 25px; background: linear-gradient(135deg, #ff416c, #ff4b2b); color: #fff; font-size: 1rem; cursor: pointer; transition: transform 0.3s ease; position: relative; overflow: hidden; } .btn::before { content: ""; position: absolute; top: 50%; left: 50%; width: 300%; height: 300%; background: rgba(255, 255, 255, 0.1); transform: translate(-50%, -50%); transition: width 0.4s ease, height 0.4s ease; border-radius: 50%; } .btn:hover::before { width: 0; height: 0; } .btn:hover { transform: scale(1.1); } @keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } } @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } @keyframes gradientShift { from { background: linear-gradient(120deg, rgba(255, 255, 255, 0.2), rgba(0, 0, 0, 0.1)); } to { background: linear-gradient(120deg, rgba(255, 255, 255, 0.1), rgba(0, 0, 0, 0.2)); } } </style> </head> <body> <div class="card"> <div class="card-content"> <h2>Frosted Glass Card</h2> <p>Experience the elegance of a frosted glass card design with a touch of modern gradient styling.</p> <button class="btn">Discover More</button> </div> </div> </body> </html>