Professional Tag - 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 Tag</title> <style> @import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap'); @import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css'); body { font-family: 'Roboto', sans-serif; display: flex; justify-content: center; align-items: center; height: 100vh; background-color: #f0f2f5; margin: 0; } .tag-container { display: flex; gap: 15px; } .tag { display: inline-flex; align-items: center; padding: 10px 20px; background: linear-gradient(135deg, #ff7e5f, #feb47b); border-radius: 50px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); color: #fff; font-weight: 700; position: relative; cursor: pointer; transition: transform 0.3s ease, box-shadow 0.3s ease; } .tag .icon { margin-right: 10px; font-size: 1.2em; } .tag .emoji { margin-left: 10px; font-size: 1.5em; } .tag:hover { transform: translateY(-5px); box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); } .tag::after { content: ''; position: absolute; width: 100%; height: 100%; background: rgba(255, 255, 255, 0.2); top: 0; left: 0; border-radius: 50px; opacity: 0; transition: opacity 0.3s ease; } .tag:hover::after { opacity: 1; } @keyframes shake { 0% { transform: translateX(0); } 25% { transform: translateX(-5px); } 50% { transform: translateX(5px); } 75% { transform: translateX(-5px); } 100% { transform: translateX(0); } } .tag.shake { animation: shake 0.5s; } </style> </head> <body> <div class="tag-container"> <div class="tag" onclick="shakeTag(this)"> <i class="fas fa-tag icon"></i> New Feature <span class="emoji">🚀</span> </div> <div class="tag" onclick="shakeTag(this)"> <i class="fas fa-star icon"></i> Popular <span class="emoji">✨</span> </div> <div class="tag" onclick="shakeTag(this)"> <i class="fas fa-heart icon"></i> Favorite <span class="emoji">❤️</span> </div> </div> <script> function shakeTag(element) { element.classList.add('shake'); setTimeout(() => { element.classList.remove('shake'); }, 500); } </script> </body> </html>