A sleek, minimalist calculator built with vanilla HTML, CSS, and JavaScript — featuring a glassmorphism design, animated background, and smooth micro-interactions.
🔗 Live Demo: spectacular-marzipan-c16ca8.netlify.app
- ➕ Basic arithmetic: addition, subtraction, multiplication, division
- ✂️ Percentage (
%) support - ⌫ DEL key to delete last character
- 🔄 AC to clear all
- 💧 Glassmorphism card with animated background orbs
- 🎨 Hover lift & press animations on every button
- 📱 Responsive centered layout
- ♿ Accessible —
arialabels andreadonlyinput
calculator/
├── index.html # Application markup
├── style.css # Glassmorphism styles & animations
└── script.js # Button event handlers & eval logic
This is a pure static site — no build step, no dependencies, no server required.
Just double-click index.html in File Explorer. It opens directly in your browser.
- Create a new repository on GitHub.
- Push your files:
git init git add . git commit -m "Initial commit" git branch -M main git remote add origin https://github.com/<your-username>/calculator.git git push -u origin main
- Go to Settings → Pages in your GitHub repo.
- Under Source, select
mainbranch and click Save. - Your calculator will be live at:
https://<your-username>.github.io/calculator/
- Go to netlify.com/drop.
- Drag and drop your
calculator/folder onto the page. - Netlify instantly generates a public URL — done!
npm i -g vercel
vercel --yesFollow the prompts — your site will be deployed in seconds.
- Install the Live Server extension.
- Right-click
index.html→ Open with Live Server. - The calculator opens at
http://127.0.0.1:5500/.
| Layer | Technology |
|---|---|
| Markup | HTML5 |
| Styles | Vanilla CSS3 |
| Logic | Vanilla JavaScript |
| Fonts | Google Fonts — Inter |
🌐 Live: https://spectacular-marzipan-c16ca8.netlify.app/
Or open index.html locally in any modern browser to see the glassmorphism design with animated background orbs and smooth button animations.
MIT — free to use, modify, and distribute.