Coder Wrap provides free to use snippets Coder Wrap provides free to use snippets

Back to HTML
Preview Source Code
Download
HTML
CSS
/**Typeo CSS Start**/
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

* {
 box-sizing: border-box;
}

body {
 font-family: "Poppins", sans-serif;
 color: #444;
 box-sizing: border-box;
 margin: 0px;
}

/**Typeo CSS End**/
.comingsoon {
 background-position: center;
 background-repeat: no-repeat;
 background-size: cover;
 position: relative;
 z-index: 1;
 width: 100%;
 min-height: 100vh;
 padding: 10px;
 display: flex;
 flex-flow: row wrap;
 align-items: center;
 justify-content: center;
}

.comingsoon:before {
 content: "";
 display: block;
 position: absolute;
 z-index: -1;
 width: 100%;
 height: 100%;
 top: 0;
 left: 0;
 background: #28916a;
 background: -webkit-linear-gradient(bottom, #efcc24, #7596ff);
 background: -o-linear-gradient(bottom, #b224ef, #7579ff);
 background: -moz-linear-gradient(bottom, #b224ef, #7579ff);
 background: linear-gradient(bottom, #b224ef, #7579ff);
 opacity: 0.75;
}

.comingsoon-inner {
 max-width: 700px;
 margin: auto;
 color: #fff;
 text-align: center;
 font-size: 21px;
 padding-bottom: 70px;
}

.comingsoon-inner h1 {
 font-weight: 300;
 font-size: 70px;
 letter-spacing: 2px;
 margin: 0px;
}

.notify-btn {
 background-color: #fff;
 color: #000;
 text-decoration: none;
 padding: 12px 35px 10px 35px;
 font-size: 20px;
 border-radius: 60px;
 line-height: normal;
 display: inline-block;
 margin-top: 20px;
}

.cmsoon-social {
 position: absolute;
 bottom: 50px;
 left: 0px;
 right: 0px;
 margin: auto;
}

.cmsoon-social a {
 color: #fff;
 font-size: 18px;
 margin: 0px 8px;
}

.cmsoon-social a:hover {
 text-decoration: none;
}

.websitetime {
 display: flex;
 flex-flow: row wrap;
 font-size: 22px;
 text-align: center;
 justify-content: center;
 text-transform: uppercase;
}

.websitetime .w-time-item {
 padding: 0px 26px;
 border-left: #fff 1px solid;
}

.websitetime .w-time-item strong {
 font-size: 50px;
}

.websitetime .w-time-item:first-child {
 border-left: none;
}

@media(max-width:767px) {
 .comingsoon-inner {
  font-size: 16px;
 }

 .comingsoon-inner h1 {
  font-size: 40px;
  letter-spacing: 1px;
 }

 .websitetime {
  font-size: 16px;
 }

 .websitetime .w-time-item {
  padding: 0px 12px;
 }

 .websitetime .w-time-item strong {
  font-size: 26px;
 }

 .cmsoon-social a {
  font-size: 15px;
  margin: 0px 5px;
 }

}
JS
// Set the date we're counting down to
var countDownDate = new Date("May 5, 2024 15:37:25").getTime();
// Update the count down every 1 second
var x = setInterval(function() {
// Get todays date and time
var now = new Date().getTime();
// Find the distance between now an the count down date
  var distance = countDownDate - now;
  // Time calculations for days, hours, minutes and seconds
  var days = Math.floor(distance / (1000 * 60 * 60 * 24));
  var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
  var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
  var seconds = Math.floor((distance % (1000 * 60)) / 1000);
  document.getElementById("websitetime").innerHTML = `
${days}
Hours
${hours}
Hours
${minutes}
Minutes
${seconds}
Seconds
` if (distance < 0) { clearInterval(x); document.getElementById("websitetime").innerHTML = "EXPIRED"; } }, 100);

Related Snippets

Leave a comment

Your email address will not be published. Required fields are marked *