This countdown timer and clock design create usign html,css and javascript. In this countdown timer demo you can display remaining days,remaining hours,remaining minutes,remaining seconds. this is also like demo of countdown clock. this countdown timer you can use in remaining offer time.

you can get code of countdown timer html javascript snippet. we give you example of simple countdown timer html , you can simple copy bellow code and use in your project. If it free snippets of bootstrap countdown timer So you have to simple get those bellow code from tab of html, css and js. you simple click on HTML Code then you will get html code countdown timer jquery snippets, click on JS Code tab get code of jquery codd for bootstrap countdown timer example snippets, same as for CSS Code tab. It's pretty easy and simple example of bootstrap jquery countdown snippet.


<!DOCTYPE html> <html> <head> <link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/css/bootstrap.min.css" integrity="sha384-PsH8R72JQ3SOdhVi3uxftmaW6Vc51MKb0q5P2rRUpPvrszuE4W1povHYgTpBfshb" crossorigin="anonymous"> <link href="https://fonts.googleapis.com/css?family=Barlow+Semi+Condensed" rel="stylesheet"> </head> <body> <div class="container"> <div class="row"> <div class="offset-lg-2 col-lg-8 col-sm-12 col-12 countdown-main"> <h3><i class="fa fa-clock-o" aria-hidden="true"></i> Countdown Left Timer</h3> <div class="row time"> <div id="day" class="col-lg-3 countdown"></div> <div id="hour" class="col-lg-3 countdown"></div> <div id="minute" class="col-lg-3 countdown"></div> <div id="second" class="col-lg-3 countdown"></div> </div> </div> </div> </div> </body> </html>
*{ font-family: 'Barlow Semi Condensed', sans-serif; } body{ background-color: #00AAA0 !important; } .countdown-main{ margin-top: 30px; text-align: center; background-color:#8ED2C9; padding: 50px; border:1px solid #00756B; } .countdown-main h3{ color:#00756B; } .countdown .sub div{ color:#fff; margin: 0px 4px; padding:8px 0px; font-size: 24px; border-radius: 5px; width:30px; text-align: center; display: inline-block; background: linear-gradient(#00756B,#3ECDC3); } .countdown .text{ font-size:20px; border-top:1px solid #00756B; margin-right:3px; margin-top:5px; color: #00756B; } .countdown-main .time{ margin-top:60px; }
var countDownDate = new Date("12, 21, 2018 15:37:25").getTime(); var x = setInterval(function() { var now = new Date().getTime(); var distance = countDownDate - now; var days = ("0" + Math.floor(distance / (1000 * 60 * 60 * 24))).slice(-2); var hours = ("0" + Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60))).slice(-2); var minutes = ("0" + Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60))).slice(-2); var seconds = ("0" + Math.floor((distance % (1000 * 60)) / 1000)).slice(-2); var day = ""; for (var i = 0; i < days.length; i++) { day = day + "<div>"+days[i]+"</div>"; } var hour = ""; for (var i = 0; i < hours.length; i++) { hour = hour + "<div>"+hours[i]+"</div>"; } var minute = ""; for (var i = 0; i < minutes.length; i++) { minute = minute + "<div>"+minutes[i]+"</div>"; } var second = ""; for (var i = 0; i < seconds.length; i++) { second = second + "<div>"+seconds[i]+"</div>"; } var day = "<div class='sub'>"+day+"</div><p class='text'>days</p>"; var hour = "<div class='sub'>"+hour+"</div><p class='text'>hours</p>"; var minute = "<div class='sub'>"+minute+"</div><p class='text'>minutes</p>"; var second = "<div class='sub'>"+second+"</div><p class='text'>seconds</p>"; document.getElementById("day").innerHTML = day; document.getElementById("hour").innerHTML = hour; document.getElementById("minute").innerHTML = minute; document.getElementById("second").innerHTML = second; if (distance < 0) { clearInterval(x); document.getElementById("day").innerHTML = "EXPIRED"; document.getElementById("hour").innerHTML = "EXPIRED"; document.getElementById("minute").innerHTML = "EXPIRED"; document.getElementById("second").innerHTML = "EXPIRED"; } }, 1000);




Random Post




Related Post

Bootstrap 4 user profile design usign with html and css

Bootstrap 4 user profile design usign with html and css

We provide bootstrap 4 user profile design. we provide new design of profile. bootstrap 4 provide new deisgn of user profile. custom profile with social icon. i...

Read More
Bootstrap 4 div structure and how to use bootstrap 4 div class ?

Bootstrap 4 div structure and how to use bootstrap 4 div cla...

Here We explain how to work bootstrap 4 column structure. ".col-" class work with screen resolution less than 576px. ".col-sm-" class work with screen resol...

Read More
Bootstrap 4 new buuton style

Bootstrap 4 new buuton style

Here we create small example for bootstrap 4 new button style. you can simply use this button in your website. we provide some custom design in bootstrap 4 butt...

Read More