Diagonal Slide 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>Diagonal Slide Button</title> <style> body { display: flex; justify-content: center; align-items: center; height: 100vh; background-color: #bbb; margin: 0; } .diagonal-slide-button { padding: 20px 40px; font-size: 18px; font-weight: bold; color: #fff; background: #f39c12; border: none; border-radius: 30px; cursor: pointer; outline: none; transition: all 0.3s ease; } .diagonal-slide-button:hover { animation: diagonal-slide 0.5s forwards; } @keyframes diagonal-slide { 0% { transform: translate(0, 0); } 50% { transform: translate(10px, 10px); } 100% { transform: translate(0, 0); } } .diagonal-slide-button span { position: relative; z-index: 1; } </style> </head> <body> <button type="button" class="diagonal-slide-button"> <span>Diagonal Slide</span> </button> </body> </html>