Slim Countdown Timer Plugin with jQuery - DownCount

Slim Countdown Timer Plugin with jQuery - DownCount
File Size: 5.18 KB
Views Total:
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
   

DownCount is a small countdown clock plugin for jQuery that counts down to a specified date time with support for timezone offset setting.

How to use it:

1. Create an html list for the countdown clock.

<ul class="countdown">
  <li>
    <span class="days">00</span>
    <p class="days_ref">days</p>
  </li>
  <li>
    <span class="hours">00</span>
    <p class="hours_ref">hours</p>
  </li>
  <li>
    <span class="minutes">00</span>
    <p class="minutes_ref">minutes</p>
  </li>
  <li>
    <span class="seconds last">00</span>
    <p class="seconds_ref">seconds</p>
  </li>
</ul>

2. Style the countdown clock in your own stylesheet.

ul.countdown {
  list-style: none;
  margin: 75px 0;
  padding: 0;
  display: block;
  text-align: center;
}

ul.countdown li { display: inline-block; }

ul.countdown li span {
  font-size: 80px;
  font-weight: 300;
  line-height: 80px;
  padding: 0 20px;
  border-top: 1px solid #C0392B;
  border-bottom: 1px solid #C0392B;
  margin-left: -4px;
}

ul.countdown li p {
  color: #a7abb1;
  font-size: 14px;
  text-transform: uppercase;
}

.days {
  background-color: #C0392B;
  padding: 0 10px;
  color: #fff;
}

.last { border-right: 1px solid #C0392B; }

3. Load jQuery library and the jQuery downcount plugin in your html page.

<script src="//code.jquery.com/jquery-1.11.3.min.js"></script>
<script src="jquery.downCount.js"></script>

4. Call the plugin and specify a date time you wish to countdown towards.

$('.countdown').downCount({
  date: '06/06/2025 12:00:00'
});

5. Setup the timezone offset.

$('.countdown').downCount({
  date: '06/06/2015 12:00:00',
  offset: +1
});

This awesome jQuery plugin is developed by sekane81. For more Advanced Usages, please check the demo page or visit the official website.