How to Build a Countdown Timer in JavaScript - EASY PROJECT

preview_player
Показать описание
Link to SOURCE CODE:

In today's video we'll be building a simple countdown timer using HTML, CSS and JavaScript. This is a project perfect for those of you who want to learn how to build a widget or component using plain JavaScript. No libraries or frameworks required.

Google Material Icons:

Chapters:
0:00 Intro & Overview
3:18 Writing the HTML
07:54 Writing the CSS
11:28 Writing the JavaScript
33:07 Finishing Up

If this video helped you out and you'd like to see more, make sure to leave a like and subscribe to dcode!

#dcode #javascript
Рекомендации по теме
Комментарии
Автор

Great tutorial. I searched far and wide for how to set up a simple js timer in my application. Couldn't find any other good ones, without using some other library like bootstrap or Jquery. This one works flawlessly, and even functions when I move tabs or minimize the browser. Thank you very much.

randmssolutions
Автор

Thank you, I was able to adapt this to my own project after spending a couple of hours not quite getting it right with my own approach.

fuckooo
Автор

This is the most helpful video I came across!! Thanks a million!!

MeritDike
Автор

This channel has so much useful content its insane, plus your way of writing is beautiful. OOP <3.

Thank you!

bozidarbralic
Автор

Really good video - no-nonsense countdown timer. I like the 'dynamic' handling of the .css classes :)

cybertrade
Автор

Very clean and easy to scale, thanks.

iuryferreira
Автор

Very straightforward to follow along and I experienced no issues unlike many tutorials here on YT. You explained everything very well.

mansouralshamri
Автор

gosh i keep coming back to this and its so simple and good

sltho
Автор

Another excellent tutorial, many thanks.

photoinshot
Автор

Thanks so much for giving us such great content, may you forever be successful in your life, bro.

mounir
Автор

Yo, hi. Do you know how to make sound notifications working when timer is finished and when the browser tab with the timer isn’t active? Sound starts working only if I open the tab with the timer

AirdropLuck
Автор

Thanks for the great lesson. This is very pure javascript code
I want a simple modification
I want the countdown to start at a specific time each day, not when the start button is clicked
Do you help me?

jzelbif
Автор

Amazing, please never stop making these videos. Much love from Africa.

michaelkatiba
Автор

Thanks.. is there a way to make the input time more than 60 minutes?

arabnws
Автор

Damn, bro! You helped me a lot with this one, thank you <3

fabrizioalpuche
Автор

i want to add custom Min also, so how can i added input of min... please help

TheHiddenMan
Автор

Thanks for the class. I enjoyed it a lot and learned a lot more.
I'm just starting to program and I wanted to ask you if you could help me. I have 5 times the clock on the page and I would like to add a button that will stop all the clocks and I would not know how to do it

sebastiansoria
Автор

that was so helpful thank you keep going like that good bless you

mhadisorkhaby
Автор

@dcode i have been trying to add localstorage to this timer but I can't seem to get around it. Can you help me out?

collinscisiwu
Автор

This is great i hope i can write javascript like this

last.journey