Skip to content

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.

Notifications You must be signed in to change notification settings

harmoncode/dynamic-pricing-calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Dynamic Pricing Calculator

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.

✨ Features

  • 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

🚀 Live Demo

View on CodePen

📁 Files

  • index.html - Main HTML structure
  • style.css - All styling and animations
  • script.js - JavaScript functionality

🛠️ Usage

Basic Implementation

<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>

JavaScript Configuration

const pricingConfig = {
    plans: {
        basic: { basePrice: 29, userPrice: 5 },
        pro: { basePrice: 99, userPrice: 8 },
        enterprise: { basePrice: 299, userPrice: 12 }
    },
    features: ['Users', 'Storage', 'Support']
};

🎨 Customization Options

  • 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

⚙️ Configuration

const config = {
    currency: '$',
    period: 'month',
    decimalPlaces: 0,
    animationDuration: 300,
    showTooltips: true
};

📱 Browser Support

  • Chrome ✅
  • Firefox ✅
  • Safari ✅
  • Edge ✅
  • IE11+ ✅

🤝 Contributing

Feel free to submit issues and enhancement requests!

📄 License

This project is open source and available under the MIT License.

👨‍💻 Created by

HarmonCode - harmoncode.com


⭐ If you find this useful, please give it a star!

About

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.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published