Professional Animated Button - 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 Animated Button</title> <style> body { display: flex; justify-content: center; align-items: center; height: 100vh; background-color: #f0f2f5; margin: 0; } .animated-button { position: relative; display: inline-block; padding: 20px 40px; font-size: 18px; font-weight: bold; color: #fff; background: linear-gradient(45deg, #ff8a00, #e52e71); border: none; border-radius: 30px; box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1); cursor: pointer; overflow: hidden; transition: all 0.3s ease; outline: none; } .animated-button .button-icon { position: absolute; left: 20px; font-size: 24px; } .animated-button .button-text { margin-left: 30px; } .animated-button:hover { transform: translateY(-2px); box-shadow: 0 15px 20px rgba(0, 0, 0, 0.2); } .animated-button:active { transform: translateY(0); box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1); } .animated-button::before, .animated-button::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(45deg, #ff8a00, #e52e71); transition: transform 0.5s; z-index: -1; } .animated-button::before { transform: skewX(-30deg); } .animated-button::after { transform: skewX(30deg); } .animated-button:hover::before { transform: skewX(0deg); } .animated-button:hover::after { transform: skewX(0deg); } .animated-button span { display: inline-block; transition: transform 0.3s ease; } .animated-button:hover span { transform: scale(1.1); } .animated-button span::before { content: '🚀'; position: absolute; left: 10px; animation: rocket 2s infinite; } @keyframes rocket { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } } </style> </head> <body> <button type="button" class="animated-button"> <span class="button-icon">⭐️</span> <span class="button-text">Click Me!</span> </button> <script> document.querySelector('.animated-button').addEventListener('click', () => { alert('Button Clicked!'); }); </script> </body> </html>