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