Minimalist Countdown Timer In D:H:M:S Format – countdown-js

Category: Date & Time , Javascript | August 24, 2023
Views Total:119 views
Official Page:Go to website
Last Update:August 24, 2023


Minimalist Countdown Timer In D:H:M:S Format – countdown-js


A minimalist countdown timer JS library that displays the remaining time to a target date/time in days, hours, minutes, and seconds.

Great for displaying countdowns to upcoming events, launch dates, promotions, or any date/time in the future.

How to use it:

1. Install & download the countdown-js.

$ npm i coundowntimer-js

2. Include the countdown.js script in your web project.

<script src="countdown.js"></script>

3. Create an empty DIV element to hold the countdown timer.

<div id="countdown"></div>

4. Initialize the countdown-js on the countdown container and specify the target date as follows:

Countdown.init('2033-08-24', 'countdown');

You Might Be Interested In:

Leave a Reply