Stylish Perseverance 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>Stylish Perseverance Badge</title> <style> body { display: flex; justify-content: center; align-items: center; height: 100vh; background-color: #e3f2fd; font-family: 'Arial', sans-serif; } .badge-container { position: relative; display: inline-block; cursor: pointer; } .badge { display: flex; align-items: center; background: linear-gradient(135deg, #0288d1, #03a9f4); 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 glow { 0% { box-shadow: 0 0 5px rgba(255, 255, 255, 0.3); } 100% { box-shadow: 0 0 20px rgba(255, 255, 255, 0.8); } } .badge.glow { animation: glow 1.5s infinite alternate; } </style> </head> <body> <div class="badge-container"> <div class="badge glow"> <span class="icon">🏅</span> <span>Stylish Perseverance Badge</span> <span class="emoji">🌟</span> </div> <div class="tooltip">Never Give Up!</div> </div> <script> document.querySelector('.badge-container').addEventListener('click', function() { alert('Perseverance Badge clicked!'); }); </script> </body> </html>