A sleek, modern tip calculator that helps you quickly calculate the total bill amount including tip. Built with vanilla JavaScript, this calculator features a clean UI, input validation, and keyboard support.
- ๐งฎ Instant tip calculations
- ๐ป Clean, responsive design
- โจ๏ธ Keyboard support (Enter key)
- โ Input validation with error messages
- ๐ฑ Mobile-friendly interface
- ๐จ Modern UI with smooth animations
- ๐ข Supports decimal values for precise calculations
- Clone the repository:
git clone https://github.com/koustavx08/tip-calculator.git
- Navigate to the project directory:
cd tip-calculator
- Open
index.html
in your preferred browser
That's it! No build process or dependencies required.
- Enter the bill amount in the first input field
- Enter the desired tip percentage in the second input field
- Click "Calculate" or press Enter
- The total amount (bill + tip) will be displayed below
tip-calculator/
โ
โโโ index.html # Main HTML file
โโโ style.css # Styles and animations
โโโ script.js # JavaScript logic
โโโ README.md # Project documentation
- HTML5
- CSS3
- Flexbox for layout
- CSS transitions for animations
- Mobile-first responsive design
- Vanilla JavaScript
- DOM manipulation
- Event handling
- Input validation
- Lightweight: No external dependencies
- Fast loading: Single page application
- Optimized: Minimal DOM operations
- โ Chrome (latest)
- โ Firefox (latest)
- โ Safari (latest)
- โ Edge (latest)
- โ Opera (latest)
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature
) - Commit your changes (
git commit -m 'Add some AmazingFeature'
) - Push to the branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
- Add split bill functionality
- Save calculation history
- Dark mode support
- Multiple currency support
- Custom tip presets
- PWA support for offline use
This project is licensed under the MIT License - see the LICENSE file for details.
- Design inspired by modern UI/UX principles
- Icons provided by Font Awesome
- Color scheme based on Material Design
Made with โค๏ธ by Koustav Singh