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