๐ต๐ฑ Wersja polska / Read in Polish
A clean, fully responsive, and modern Pricing Table template built with HTML, CSS, and Vanilla JavaScript. It features a toggle switch for Monthly/Yearly billing with automatic price updates and discount calculations.
Perfect for SaaS landing pages, service providers, and startup projects.
๐ Check out the Live Demo here
- โก Zero Dependencies: Built with pure HTML5, CSS3, and JS. No Bootstrap or jQuery required.
- ๐ฑ Fully Responsive: Stacks cards vertically on mobile devices and uses a grid layout on desktops.
- ๐ Interactive Toggle: Switch between Monthly and Yearly billing instantly.
- ๐งฎ Auto-Calculation: JavaScript logic handles price switching (e.g., 20% discount visualization).
- โจ Modern UI: Hover effects, smooth transitions, and "Best Value" highlighting.
- ๐ Modular: Separated into
index.html,style.css, andscript.jsfor easy maintenance.
/
โโโ index.html # Main HTML structure
โโโ style.css # All styling and responsive rules
โโโ script.js # Logic for the pricing toggle
โโโ README.md # Documentation
How to Use โ๏ธ Clone or Download this repository.
Link the style.css in your tag.
Add the HTML structure to your page.
Link the script.js at the end of your .
Configuration You don't need to touch the JavaScript code to change prices. Simply edit the data-attributes in the HTML file:
HTML
<div class="plan-price"
data-monthly="49" data-yearly="39"> 49 zล
</div>
Customization ๐จ
Colors: Change the main accent color in style.css (look for #6c5ce7).
Currency: Just change the text inside the HTML tags (e.g., replace zล with $).
License ๐ This project is licensed under the MIT License - feel free to use it in your personal and commercial projects.
Made by [hsr88]
