Modern 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>Modern 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, #FF6F61, #D0E1F9); height: 100vh; display: flex; justify-content: center; align-items: center; } .modern-card { width: 320px; background: rgba(255, 255, 255, 0.2); border-radius: 20px; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); padding: 25px; text-align: center; position: relative; overflow: hidden; transition: transform 0.4s, box-shadow 0.4s; } .modern-card:hover { transform: scale(1.1); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4); } .modern-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(0, 0, 0, 0.1)); opacity: 0.25; pointer-events: none; z-index: 0; } .modern-card-header { font-size: 1.6em; color: #fff; margin-bottom: 15px; position: relative; z-index: 1; } .modern-card-content { color: #fff; font-size: 1em; position: relative; z-index: 1; } .modern-card-icon { font-size: 2.2em; color: #FF6F61; margin-bottom: 15px; } .modern-card-footer { margin-top: 25px; position: relative; z-index: 1; } .modern-card-button { background: linear-gradient(45deg, #FF6F61, #D0E1F9); border: none; border-radius: 7px; color: #fff; padding: 12px 24px; font-size: 1em; cursor: pointer; transition: background 0.4s; position: relative; z-index: 1; } .modern-card-button:hover { background: linear-gradient(45deg, #D0E1F9, #FF6F61); } .modern-card-button i { margin-right: 10px; } </style> </head> <body> <div class="modern-card"> <div class="modern-card-icon"> <i class="fas fa-star"></i> </div> <div class="modern-card-header">Modern Glass Card</div> <div class="modern-card-content"> This card features a sleek modern glass effect with vibrant gradient backgrounds. Hover to see the scale and shadow effects. </div> <div class="modern-card-footer"> <button class="modern-card-button"> <i class="fas fa-info-circle"></i> Discover </button> </div> </div> </body> </html>