A simple and elegant stopwatch application built in vanilla JavaScript, featuring smooth animations and theme customization.
- Accurate Time Tracking - Tracks hours, minutes, and seconds precisely
- Start/Stop Controls - Easy to use interface with clear button states
- Reset Functionality - Quick reset to start timing again
- Dark/Light Theme - Toggle between themes with persistent storage
- Responsive Design - Works seamlessly on desktop and mobile devices
- Visual Feedback - Blinking animation when timer is stopped
- Open
index.htmlin your browser - Click "Start Time" to begin the stopwatch
- Click "Stop Time" to pause the timer
- Click "Reset" to clear the timer back to 00:00:00
- Use the theme toggle to switch between light and dark modes
- HTML5
- CSS3 (Animations & Responsive Design)
- JavaScript (ES6)
- Bootstrap 5
├── index.html # Main HTML structure
├── style.css # Custom styles and animations
├── script.js # Timer logic and functionality
└── bootstrap/ # Bootstrap framework (This folder isn't the part of this repo, you can manually add bootstrap folder
or using bootstrap cdn link in index.html file)
The stopwatch uses setInterval() for accurate time tracking and manages button states to prevent multiple timers from running simultaneously. Theme preferences are saved in localStorage for a consistent user experience across sessions.
No installation required. Simply clone and open in your browser.
git clone https://github.com/UmarAli57/stopwatch-timer.git
cd stopwatch-timerUmar Ali
Email: umar.pwu786@gmail.com
MIT License - feel free to use this project for learning purposes.