Glassmorphism Cards - 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 Cards</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css"> <style> body { font-family: 'Arial', sans-serif; background: url('https://via.placeholder.com/1920x1080') no-repeat center center fixed; background-size: cover; display: flex; flex-wrap: wrap; justify-content: center; padding: 20px; } .card-container { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; } .glassmorphic-card { width: 300px; background: rgba(255, 255, 255, 0.1); border-radius: 15px; padding: 20px; text-align: center; border: 1px solid rgba(255, 255, 255, 0.3); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1); transition: transform 0.3s; } .glassmorphic-card:hover { transform: translateY(-10px); } .glassmorphic-card .icon { font-size: 3em; color: #00bcd4; margin-bottom: 10px; } .glassmorphic-card h3 { margin: 10px 0; font-size: 1.5em; color: #fff; } .glassmorphic-card p { color: #ddd; } .glassmorphic-card button { margin-top: 10px; padding: 10px 20px; border: none; border-radius: 5px; background: #00bcd4; color: white; cursor: pointer; transition: background 0.3s; } .glassmorphic-card button:hover { background: #00a3b1; } </style> </head> <body> <div class="card-container"> <div class="glassmorphic-card"> <i class="fas fa-music icon"></i> <h3>Music Festival</h3> <p>Join us for an unforgettable music experience.</p> <button>Join Now</button> </div> <div class="glassmorphic-card"> <i class="fas fa-film icon"></i> <h3>Film Screening</h3> <p>Watch the latest films with fellow enthusiasts.</p> <button>Join Now</button> </div> <div class="glassmorphic-card"> <i class="fas fa-book-reader icon"></i> <h3>Book Club</h3> <p>Discuss your favorite books with like-minded people.</p> <button>Join Now</button> </div> </div> </body> </html>