Professional Span - 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>Professional Span</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css"> <style> body { display: flex; justify-content: center; align-items: center; height: 100vh; background-color: #f0f0f0; margin: 0; font-family: Arial, sans-serif; } .professional-span { display: inline-block; padding: 10px 20px; font-size: 1.5rem; font-weight: bold; color: #fff; background: linear-gradient(45deg, #ff4b1f, #ff9068); border-radius: 50px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); cursor: pointer; position: relative; overflow: hidden; transition: all 0.3s ease; } .professional-span:hover { transform: scale(1.1); box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3); } .professional-span::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(255, 255, 255, 0.2); transition: all 0.3s ease; z-index: 1; opacity: 0; } .professional-span:hover::before { opacity: 1; } .professional-span .emoji { font-size: 1.5rem; margin-right: 10px; } .professional-span .icon { font-size: 1.5rem; margin-left: 10px; } @keyframes rainbow-text { 0% { color: #ff4b1f; } 14% { color: #ff9068; } 28% { color: #ff4b1f; } 42% { color: #ff9068; } 56% { color: #ff4b1f; } 70% { color: #ff9068; } 84% { color: #ff4b1f; } 100% { color: #ff9068; } } .professional-span .text { animation: rainbow-text 2s infinite; z-index: 2; position: relative; } </style> </head> <body> <span class="professional-span"> <span class="emoji">✨</span> <span class="text">Click Me!</span> <span class="icon"><i class="fas fa-magic"></i></span> </span> <script> document.querySelector('.professional-span').addEventListener('click', function() { alert('Span clicked!'); }); </script> </body> </html>