Modern 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 Card</title> <style> body { display: flex; justify-content: center; align-items: center; height: 100vh; margin: 0; background: linear-gradient(135deg, #72edf2 10%, #5151e5 100%); font-family: 'Arial', sans-serif; } .card { position: relative; width: 300px; height: 400px; background: #fff; border-radius: 15px; box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1); overflow: hidden; transition: transform 0.5s; } .card:hover { transform: scale(1.05); } .card::before { content: '⭐'; position: absolute; top: -50px; left: -50px; width: 100px; height: 100px; background: rgba(255, 223, 0, 0.5); border-radius: 50%; animation: rotate 6s linear infinite; } .card::after { content: '💼'; position: absolute; bottom: -50px; right: -50px; width: 100px; height: 100px; background: rgba(0, 123, 255, 0.5); border-radius: 50%; animation: rotate 8s linear infinite reverse; } @keyframes rotate { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } .card-header { position: relative; height: 150px; background: url('https://via.placeholder.com/300x150') center/cover no-repeat; } .card-header::after { content: '🔔'; position: absolute; top: 10px; right: 10px; font-size: 24px; animation: bounce 2s infinite; } @keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } } .card-body { padding: 20px; text-align: center; } .card-title { font-size: 24px; font-weight: bold; margin: 0; } .card-description { font-size: 14px; color: #777; margin-top: 10px; } .card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; text-align: center; } .card-footer a { text-decoration: none; color: #007bff; font-weight: bold; transition: color 0.3s; text-align: center; margin-left: 100px; } .card-footer a:hover { color: #0056b3; } .card-footer .icon { font-size: 24px; transition: transform 0.3s; } .card-footer .icon:hover { transform: scale(1.2); } </style> </head> <body> <div class="card"> <div class="card-header"></div> <div class="card-body"> <h2 class="card-title">Modern Card</h2> <p class="card-description">This card is designed to be highly attractive and usable with animations, emojis, and icons.</p> </div> <div class="card-footer"> <a href="#">Learn More</a> <span class="icon">🚀</span> </div> </div> </body> </html>