A stylish and responsive calculator built using HTML, CSS, and JavaScript with light/dark mode toggle, smooth button animations, and error handling for invalid inputs.
- ➕ Basic Operations: Add, subtract, multiply, divide
- 🎨 Modern Glassy UI: Gradient background & rounded button design
- 🌙 Dark/Light Mode Toggle: Switch themes in one click
- 🎭 Button Animations: Hover & press effects for better UX
- 🛑 Error Handling: Friendly messages for invalid operations
- 👤 Footer Credit: Developed by Karthik Shet
- HTML5 – Structure
- CSS3 – Stylish buttons, gradients, and themes
- Vanilla JavaScript – Calculation logic & event handling
-
Clone the repository:
git clone https://github.com/karthikrshet/modern-calculator.git
-
Open
index.htmlin a browser. -
Use the calculator for basic arithmetic operations.
-
Toggle themes using the "Switch Theme" button.
- Add Scientific Mode (sin, cos, %, square root).
- History Log: Keep a record of previous calculations.
- Mobile Optimization: Enhanced layout for small screens.