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