Heart Notification Badge - 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>Heart Notification Badge</title> <style> body { font-family: 'Arial', sans-serif; background-color: #ffe6e6; display: flex; justify-content: center; align-items: center; height: 100vh; margin: 0; } .notification-container { position: relative; display: inline-block; margin: 20px; } .notification-icon { font-size: 50px; color: #ff6b81; animation: heartbeat 1.5s infinite; position: relative; } .notification-badge { position: absolute; top: -10px; right: -10px; background-color: #ff6b81; color: #fff; font-size: 14px; width: 24px; height: 24px; border-radius: 50%; display: flex; justify-content: center; align-items: center; animation: shake 1.5s infinite; } .notification-badge::after { content: '❤️'; position: absolute; font-size: 18px; top: -15px; right: -15px; animation: wobble 1s infinite; } @keyframes heartbeat { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.2); } } @keyframes shake { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-10deg); } 75% { transform: rotate(10deg); } } @keyframes wobble { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-10px); } } </style> </head> <body> <div class="notification-container"> <span class="notification-icon">💖</span> <span class="notification-badge">8</span> </div> </body> </html>