Lightning Button - VexaX
Run Code
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>Lightning Button</title> <style> body { display: flex; justify-content: center; align-items: center; height: 100vh; background-color: #fff; margin: 0; } .lightning-button { padding: 20px 40px; font-size: 18px; font-weight: bold; color: #fff; background: linear-gradient(135deg, #3498db, #8e44ad); border: none; border-radius: 30px; cursor: pointer; outline: none; position: relative; overflow: hidden; box-shadow: 0 0 10px #3498db, 0 0 20px #8e44ad; animation: lightning 1s infinite alternate; } @keyframes lightning { 0% { box-shadow: 0 0 10px #3498db, 0 0 20px #8e44ad; } 50% { box-shadow: 0 0 20px #3498db, 0 0 40px #8e44ad; } 100% { box-shadow: 0 0 10px #3498db, 0 0 20px #8e44ad; } } .lightning-button span { position: relative; z-index: 1; } </style> </head> <body> <button type="button" class="lightning-button"> <span>Lightning</span> </button> </body> </html>