Glassmorphism 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>Glassmorphism 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, rgba(0, 128, 255, 0.5), rgba(255, 0, 150, 0.5)); height: 100vh; display: flex; justify-content: center; align-items: center; } .card { width: 300px; background: rgba(255, 255, 255, 0.2); border-radius: 15px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); padding: 20px; text-align: center; position: relative; overflow: hidden; transition: transform 0.3s, box-shadow 0.3s; } .card:hover { transform: scale(1.05); box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3); } .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.2; pointer-events: none; z-index: 0; } .card-header { font-size: 1.5em; color: #fff; margin-bottom: 10px; position: relative; z-index: 1; } .card-content { color: #fff; font-size: 0.9em; position: relative; z-index: 1; } .card-icon { font-size: 2em; color: #4CAF50; margin-bottom: 10px; } .card-footer { margin-top: 20px; position: relative; z-index: 1; } .card-button { background: linear-gradient(45deg, #4CAF50, #81C784); border: none; border-radius: 5px; color: #fff; padding: 10px 20px; font-size: 0.9em; cursor: pointer; transition: background 0.3s; position: relative; z-index: 1; } .card-button:hover { background: linear-gradient(45deg, #81C784, #4CAF50); } .card-button i { margin-right: 8px; } </style> </head> <body> <div class="card"> <div class="card-icon"> <i class="fas fa-cog"></i> </div> <div class="card-header">Professional Card</div> <div class="card-content"> This card uses a glassmorphism design with a linear gradient background and unique styles. Hover to see animations and effects. </div> <div class="card-footer"> <button class="card-button"> <i class="fas fa-arrow-right"></i> Learn More </button> </div> </div> </body> </html>