Skip to content

Elements:Counters

Add nice counters and countdown timers.

Counters

Simply add an data-bs-toggle="count-to" data-to="NUMBER-TO" data-from="NUMBER-FROM" attribute to any element.

0

<h2 data-bs-toggle="count-to" data-to="5088767" data-from="0">
  0
</h2>

Count Up

0

<h2 data-bs-toggle="count-to" data-to="288767" data-from="0">
  0
</h2>

Count Down

5088767

<h2 data-bs-toggle="count-to" data-to="0" data-from="5088767">
  5088767
</h2>

Timers

Simply add an data-countdown="DATE-TO-COUNTDOWN-TO" attribute to any element.

2025 starts in:

<p>2025 starts in: <span class="countdown fw-bold" data-countdown="2025/01/01 00:00:01"></span></p>

Timer Format

By passing a data-countdown-format='DATE-FORMAT' you can control the output of the timer, you can even include HTML.

2025 starts in time.

<p>2025 starts in <span class="countdown fw-bold" data-countdown="2025/01/01 00:00:01" data-countdown-format="'%-D"></span> time.</p>
Formats
Directive (01, 02, 03, .., 10) Blank-padded (1, 2, 3, .., 10) Description
%Y %-Y Years left *
%m %-m Months left *
%n %-n Days left until the next complete month *
%w %-w Weeks left
%W %-W Weeks left until the next complete month *
%d %-d Days left (taking away weeks)
%H %-H Hours left
%M %-M Minutes left
%S %-S Seconds left
%D %-D Total count of days till the end
%I %-I Total count of hours thill the end
%N %-N Total count of minutes till the end
%T %-T Total count of seconds till the end
Plurals
Directive Description
%!H Return s when the hour is different than 1
%!S:plural; Return plural when seconds if different than 1
%!d:singular,plural; Return singular when day is 1 and plural otherwise

Awesome Features

Beginner + developer friendly
Free Lifetime Upgrades
Fully Responsive
About Us

Making the web a prettier place one template at a time! We make beautiful, quality, responsive Drupal & web templates!

Find out more
Contact Us

019223 8092344

info@themelize.me

Sunshine House, Sunville. SUN12 8LU.

Colour Options

AppStrap comes with 11 pre-defined colour options which are shown below.

You can easily switch colours doing one of the following:

  1. via the config colourScheme option
  2. or via ./src/scss/_variables.scss defining a preset colour or by defining your own.


Cookies are NOT enabled so colour selection is not persistent.

To main homepage

To admin homepage

To intro page