π Live Demo: Enhanced Download Button
The Enhanced Download Button is a sleek, modern, and interactive button built for effortless file downloads with real-time tracking. It ensures a seamless experience with:
β
Dynamic Download Counter β Tracks downloads in real time using an API.
β
Smooth Animations & UI β Eye-catching gradient effects and hover states.
β
Error Handling & Loading Indicator β Ensures reliability and a smooth user journey.
β
Fully Responsive Design β Optimized for all screen sizes, from mobile to desktop.
β
Fast & Secure Hosting β Deployed on Vercel for high performance and uptime.
Ideal for websites, SaaS tools, and file-sharing platforms looking to enhance their UX!
π download-button/ # Root directory
β£ π public/ # Public folder for static files
β β π index.html # Main HTML file with the download button
β£ π LICENSE # License file (GPL-3.0)
β£ π README.md # Documentation with setup & usage details
β£ π vercel.json # Vercel configuration file
β π package.json # Project metadata & scripts
- Gradient hover effects for a smooth look.
- Loading animation when the file is downloading.
- Elegant shadow and hover transformations.
- Fetches current download count from an API.
- Increments download count upon each file download.
- Displays the counter in a styled badge.
- If the download fails, the button shows an error message.
- Includes retry logic and resets automatically.
git clone https://github.com/AsifKamboh-COM/download-button.git
cd download-button
Since this is a static HTML, CSS, and JS project, no dependencies are required.
Make sure you have Vercel CLI installed:
npm install -g vercel
Then deploy your project:
vercel
π Your project will be live instantly!
1οΈβ£ Open the webpage: Click Here
2οΈβ£ Click on the Download Button.
3οΈβ£ The spinner will appear while processing.
4οΈβ£ File starts downloading automatically.
5οΈβ£ Download counter updates dynamically.
You can modify the styles in index.html
inside the <style>
section.
For example, change the gradient color:
:root {
--primary-gradient: linear-gradient(135deg, #ff6b6b 0%, #ffb400 50%, #ffeb3b 100%);
}
π Modify the href inside the JavaScript code in index.html
:
downloadLink.href = 'YOUR_FILE_DOWNLOAD_LINK_HERE';
This project is licensed under GPL-3.0.
See the full license details in the LICENSE file.
Developed with β€οΈ by Asif Kamboh π
Follow me for more amazing projects!
π€ Contributions are welcome!
1οΈβ£ Fork the repository
2οΈβ£ Make changes
3οΈβ£ Submit a pull request
π₯ Let's build something amazing together!