Gradient Border Download 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>Gradient Border Download Button</title> <style> body { display: flex; justify-content: center; align-items: center; height: 100vh; background: #fff3e0; margin: 0; font-family: Arial, sans-serif; } .download-btn { padding: 15px 30px; background: #fff; color: #ff9800; font-size: 18px; font-weight: bold; text-decoration: none; border-radius: 8px; border: 3px solid transparent; background-image: linear-gradient(#fff, #fff), linear-gradient(45deg, #ff9800, #f44336); background-origin: border-box; background-clip: content-box, border-box; display: inline-flex; align-items: center; position: relative; overflow: hidden; } .download-btn::before { content: ""; position: absolute; top: 0; left: 0; width: 200%; height: 200%; background: linear-gradient(45deg, #ff9800, #f44336); transition: transform 0.5s ease; z-index: -1; } .download-btn:hover::before { transform: translate(-50%, -50%); } .download-btn .icon { margin-right: 10px; font-size: 24px; } </style> </head> <body> <a href="#" class="download-btn"> <span class="icon">⬇️</span> Download </a> </body> </html>