Galaxy 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>Galaxy Button</title> <style> body { display: flex; justify-content: center; align-items: center; height: 100vh; background-color: #f5f5f5; margin: 0; } .galaxy-button { padding: 20px 40px; font-size: 18px; font-weight: bold; color: #fff; background: linear-gradient(135deg, #2980b9, #8e44ad); border: none; border-radius: 30px; cursor: pointer; outline: none; position: relative; overflow: hidden; } .galaxy-button::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(135deg, #8e44ad, #2980b9); transition: all 0.5s ease; z-index: -1; opacity: 0; } .galaxy-button:hover::before { opacity: 1; } .galaxy-button span { position: relative; z-index: 1; } </style> </head> <body> <button type="button" class="galaxy-button"> <span>Galaxy</span> </button> </body> </html>