An interactive pricing calculator with real-time updates and beautiful UI. Perfect for SaaS applications, service providers, or any business that needs to calculate pricing based on multiple factors.
- Real-time Updates: Instant price calculation as users change options
- Multiple Plans: Support for different pricing tiers
- Customizable Options: Easy to add/remove pricing factors
- Responsive Design: Works perfectly on all devices
- Beautiful UI: Modern, clean interface with smooth animations
- Accessible: Built with accessibility in mind
- Export Options: Copy pricing details to clipboard
index.html- Main HTML structurestyle.css- All styling and animationsscript.js- JavaScript functionality
<div class="pricing-calculator"> <div class="plan-selector"> <button class="plan-btn active" data-plan="basic">Basic</button> <button class="plan-btn" data-plan="pro">Pro</button> <button class="plan-btn" data-plan="enterprise">Enterprise</button> </div> <div class="options"> <div class="option"> <label>Users</label> <input type="range" min="1" max="100" value="10"> </div> </div> <div class="total-price"> <span class="price">$99</span> <span class="period">/month</span> </div> </div>
const pricingConfig = { plans: { basic: { basePrice: 29, userPrice: 5 }, pro: { basePrice: 99, userPrice: 8 }, enterprise: { basePrice: 299, userPrice: 12 } }, features: ['Users', 'Storage', 'Support'] };
- Plans: Add/remove pricing plans
- Factors: Customize pricing factors (users, storage, etc.)
- Colors: Change theme colors and gradients
- Animations: Adjust transition effects
- Layout: Modify component layout and spacing
const config = { currency: '$', period: 'month', decimalPlaces: 0, animationDuration: 300, showTooltips: true };
- Chrome ✅
- Firefox ✅
- Safari ✅
- Edge ✅
- IE11+ ✅
Feel free to submit issues and enhancement requests!
This project is open source and available under the MIT License.
HarmonCode - harmoncode.com
⭐ If you find this useful, please give it a star!