A fully interactive Calculator Web App built with HTML, CSS, and JavaScript, featuring an animated conic-gradient border, clean layout, and responsive controls. The project includes a start screen, a polished UI, and optimized event handling to ensure smooth and efficient performance.
- Animated conic-gradient border with smooth rotation
- Clean dark UI with soft shadows and rounded buttons
- Responsive design suitable for all screen sizes
- Real-time calculations with support for AC, DEL, operators, and equal
- Safe evaluation with error handling for invalid inputs
- Optimized event handling using a
listenersAttachedflag to avoid duplicate listeners
๐ฆ Calculator App
โโโ index.html
โโโ style.css
โโโ script.js
- HTML5
- CSS3
- JavaScript
- The calculator remains hidden until the user clicks Start.
- When activated, the user can click buttons to build a calculation string.
- Pressing
=evaluates the expression safely usingtry/catch. ACclears the display,DELremoves the last character, and operators append to the expression.- CSS animations run smoothly using
@propertyand conic gradients to create a glowing rotating border.
- Clone the repository.
- Open index.html in your browser.
- Click Start and begin using your calculator.
