Submitted almost 2 years ago
Vanilla JS, syncing of progress bar in CSS with JS timer
@ar78studio
Design comparison
SolutionDesign
Solution retrospective
All feedback is welcome! :)
- One of the improvements I'm working on is the: new Date().getTime() as there is a slight drift over-time with the progress bar if using setInterval() only.
- The progress bar is counting seconds and is showing the progress of each minute passed, I would also like to have the progress bar display total time elapsed/remaining.
Community feedback
- @daniloparrajrPosted over 1 year ago
Hi Geochi,
You can follow this video by Google Chrome Developers about JavaScript accurate timer. I used this in my solution also.
Another suggestion is to actually use an existing pomodoro app to compare how it works, like the pomofocus app
Hope this helps, all the best!
0
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord