Sparkle Button

🌐 Sparkle Button


        
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Sparkle Glowing Button</title> <style> body { display: flex; justify-content: center; align-items: center; height: 100vh; margin: 0; background: #121212; font-family: Arial, sans-serif; } .container { text-align: center; } .sparkle-button { position: relative; background: none; color: white; padding: 15px 30px; font-size: 18px; border: 2px solid #ACFFAC; border-radius: 8px; cursor: pointer; box-shadow: 0 0 20px rgba(255, 255, 255, 0.2); outline: none; overflow: hidden; transition: transform 0.3s ease, box-shadow 0.3s ease; } .sparkle-button:hover { transform: scale(1.1); box-shadow: 0 0 30px rgba(255, 255, 255, 0.6); } .sparkle-button:before, .sparkle-button:after { content: ''; position: absolute; top: 0; left: 0; width: 200%; height: 200%; background: radial-gradient(circle, rgba(255, 255, 255, 0.8), transparent); opacity: 0; pointer-events: none; animation: sparkle-animation 2s infinite; } .sparkle-button:after { animation-delay: 1s; } @keyframes sparkle-animation { 0% { transform: translate(-50%, -50%) scale(0.5); opacity: 1; } 50% { transform: translate(50%, 50%) scale(1.5); opacity: 0.5; } 100% { transform: translate(150%, 150%) scale(0.5); opacity: 0; } } </style> </head> <body> <div class="container"> <button class="sparkle-button">Sparkle Button </button> </div> </body> </html>

🔍 Output Preview