Dedication 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>Dedication Badge</title> <style> body { display: flex; justify-content: center; align-items: center; height: 100vh; background-color: #e8eaf6; font-family: 'Arial', sans-serif; } .badge-container { position: relative; display: inline-block; cursor: pointer; } .badge { display: flex; align-items: center; background: linear-gradient(135deg, #3f51b5, #7986cb); color: white; padding: 10px 20px; border-radius: 30px; font-size: 16px; font-weight: bold; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); transition: transform 0.3s, box-shadow 0.3s; } .badge:hover { transform: scale(1.1); box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2); } .badge .icon { margin-right: 10px; font-size: 24px; } .badge .emoji { margin-left: 10px; font-size: 24px; } .tooltip { visibility: hidden; background-color: #333; color: #fff; text-align: center; border-radius: 5px; padding: 5px; position: absolute; z-index: 1; bottom: 125%; left: 50%; transform: translateX(-50%); opacity: 0; transition: opacity 0.3s; } .badge-container:hover .tooltip { visibility: visible; opacity: 1; } @keyframes flip { 0% { transform: rotateY(0); } 100% { transform: rotateY(360deg); } } .badge.flip { animation: flip 1.5s infinite; } </style> </head> <body> <div class="badge-container"> <div class="badge flip"> <span class="icon">⏰</span> <span>Dedication Badge</span> <span class="emoji">💪</span> </div> <div class="tooltip">Dedication Pays Off!</div> </div> <script> document.querySelector('.badge-container').addEventListener('click', function() { alert('Dedication Badge clicked!'); }); </script> </body> </html>