Elegant Frosted Card - VexaX
Run Code
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 Frosted 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, #8E2DE2, #4A00E0); height: 100vh; display: flex; justify-content: center; align-items: center; } .elegant-card { width: 340px; background: rgba(255, 255, 255, 0.15); border-radius: 15px; box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4); padding: 30px; text-align: center; position: relative; overflow: hidden; transition: transform 0.4s, box-shadow 0.4s; } .elegant-card:hover { transform: scale(1.08); box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5); } .elegant-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.3; pointer-events: none; z-index: 0; } .elegant-card-header { font-size: 1.7em; color: #fff; margin-bottom: 20px; position: relative; z-index: 1; } .elegant-card-content { color: #fff; font-size: 1em; position: relative; z-index: 1; } .elegant-card-icon { font-size: 2.5em; color: #4A00E0; margin-bottom: 15px; } .elegant-card-footer { margin-top: 20px; position: relative; z-index: 1; } .elegant-card-button { background: linear-gradient(45deg, #8E2DE2, #4A00E0); border: none; border-radius: 7px; color: #fff; padding: 12px 25px; font-size: 1em; cursor: pointer; transition: background 0.4s; position: relative; z-index: 1; } .elegant-card-button:hover { background: linear-gradient(45deg, #4A00E0, #8E2DE2); } .elegant-card-button i { margin-right: 10px; } </style> </head> <body> <div class="elegant-card"> <div class="elegant-card-icon"> <i class="fas fa-heart"></i> </div> <div class="elegant-card-header">Elegant Frosted Card</div> <div class="elegant-card-content"> This card combines elegance with a frosted glass effect and rich gradient backgrounds. Hover to experience the smooth transformation. </div> <div class="elegant-card-footer"> <button class="elegant-card-button"> <i class="fas fa-certificate"></i> Explore </button> </div> </div> </body> </html>