Wave 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>Wave Button</title> <style> body { display: flex; justify-content: center; align-items: center; height: 100vh; background-color: #0c0c0c; margin: 0; } .wave-button { position: relative; padding: 20px 40px; font-size: 18px; font-weight: bold; color: #fff; background: #673ab7; border: none; border-radius: 30px; cursor: pointer; overflow: hidden; outline: none; transition: all 0.3s ease; } .wave-button::before { content: ''; position: absolute; top: 0; left: 50%; width: 200%; height: 100%; background: rgba(255, 255, 255, 0.1); transform: translateX(-50%) scaleX(0); transition: transform 0.5s ease; } .wave-button:hover::before { transform: translateX(-50%) scaleX(1); } .wave-button span { position: relative; z-index: 1; } </style> </head> <body> <button type="button" class="wave-button"> <span>Wave Effect</span> </button> </body> </html>