A beginner-friendly HTML, CSS & JavaScript project from the Codeboid Real-Life Web Projects series.
This project is a simple Pomodoro-style study timer built with HTML, CSS, and JavaScript. It helps you focus by letting you:
- Start a 25-minute study session
- Pause and reset the timer
- Set a custom number of minutes (1–180)
- Hear a short ding when time’s up
Perfect for beginners who want to practice DOM manipulation, event listeners, and JavaScript intervals.
.
├── index.html
├── style.css
└──script.js
- Download or clone the repo
- Open
index.htmlin your browser — that’s it 🚀
No build tools or frameworks required.
Follow the step-by-step guide on Codeboid:
👉 Build a Study Timer with HTML, CSS & JavaScript
Or try the live preview on CodePen:
👉 Live Demo
- Clean dark theme with CSS variables
- Start / Pause / Reset buttons
- Custom minutes input (1–180)
- Plays a sound when finished
- Progress bar that fills as time passes
- Change default minutes: edit
script.jsand setlet total = 25 * 60; // change 25 to your default
- Brand colors: tweak CSS variables in
style.css(--teal-start,--teal-end,--bg, etc.) - Autoplay note: some browsers require one user interaction before audio can play.
PRs and suggestions are welcome! If you find a bug, open an issue.
Licensed under the MIT License.
