Slide In Download 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>Slide-In Download Button</title> <style> body { display: flex; justify-content: center; align-items: center; height: 100vh; background: #e1bee7; margin: 0; font-family: Arial, sans-serif; } .download-btn { display: inline-flex; align-items: center; padding: 15px 30px; background: #8e24aa; color: white; font-size: 18px; font-weight: bold; text-decoration: none; border-radius: 8px; overflow: hidden; position: relative; transition: all 0.3s ease; } .download-btn .icon { margin-right: 10px; font-size: 24px; position: relative; left: -50px; transition: left 0.3s ease; } .download-btn:hover .icon { left: 0; } .download-btn .text { position: relative; left: 50px; transition: left 0.3s ease; } .download-btn:hover .text { left: 0; } </style> </head> <body> <a href="#" class="download-btn"> <span class="icon">⬇️</span> <span class="text">Download</span> </a> </body> </html>