Logo Logo v2.0
Image Description Image Description

No Results

  • Get Support
  • Preview Demo
Logo Logo v2.0
  • Documentation
  • Introduction
  • Getting started
  • Getting Started
  • Gulp
  • Dark Mode New
  • Customization
  • Credits
  • Changelog
  • Design & Graphics
  • Bootstrap Icons
  • Illustrations
  • Components
  • Accordion
  • Alerts
  • Avatars
  • Badge
  • Breadcrumb
  • Buttons
  • Button Group
  • Cards
  • Collapse
  • Column Divider
  • Devices
  • Divider
  • Dropdowns
  • Icons
  • List Group
  • Lists
  • Legend Indicator
  • Modal
  • Offcanvas
  • Page Header
  • Pagination
  • Popovers
  • Progress
  • Profile
  • Shapes
  • Sliding Image
  • Spinners
  • Steps
  • Tab
  • Toasts
  • Tooltips
  • Typography
  • Navbars
  • Navbar
  • Navs
  • Mega Menu
  • Navbar Vertical Aside
  • Scrollspy
  • Tables
  • Tables
  • Datatables
  • Sticky Header
  • Basic forms
  • Basic Forms
  • Checks & Switches
  • Input Group
  • Advanced Forms
  • Advanced Select
  • Datepicker (Flatpickr)
  • Date Range Picker
  • Calendar (Fullcalendar)
  • File Attachments
  • Drag’ n’ Drop File Uploads
  • WYSIWYG Editor
  • Quantity Counter
  • Copy to Clipboard
  • Input Mask
  • Step Forms (Wizards)
  • Add Field
  • Toggle Password
  • Count Characters
  • Form Search
  • Toggle Switch
  • Google reCAPTCHA
  • Charts
  • Chart.js
  • Counter
  • Circles.js (Pie Chart)
  • Others
  • Fullscreen Lightbox
  • Leaflet
  • JSVectorMap
  • SortableJS
  • Sticky Block
  • Go To
  • Utilities
  • Backgrounds
  • Borders
  • Colors
  • Links
  • Position
  • Shadows
  • Sizing
  • Spacing
  • Z-index
  • Opacity

Counter

Animate a number from zero (counting up towards it).

How to use

Copy-paste the following <script> near the end of your pages under JS Implementing Plugins to enable it.

        
          <script src="../assets/vendor/appear/dist/appear.min.js"></script>
          <script src="../assets/vendor/hs-counter/dist/hs-counter.min.js"></script>
        
      

Copy-paste the init function under JS Plugins Init., before the closing </body> tag, to enable it.

        
          <script>
            (function() {
              // INITIALIZATION OF COUNTER
              // =======================================================
              new HSCounter('.js-counter')
            });
          </script>
        
      

Basic example

  • Preview
  • HTML
52147
Code Lines
24583
Projects
7348
Working Hours
87904
Job Offers
              
                <div class="row text-center">
                  <div class="col-lg-3 col-sm-6 mb-5 mb-lg-0">
                    <div class="js-counter h1 mb-1">52147</div>
                    <span>Code Lines</span>
                  </div>
                  <!-- End Col -->

                  <div class="col-lg-3 col-sm-6 mb-5 mb-lg-0">
                    <div class="js-counter h1 mb-1">24583</div>
                    <span>Projects</span>
                  </div>
                  <!-- End Col -->

                  <div class="col-lg-3 col-sm-6 mb-5 mb-lg-0">
                    <div class="js-counter h1 mb-1">7348</div>
                    <span>Working Hours</span>
                  </div>
                  <!-- End Col -->

                  <div class="col-lg-3 col-sm-6 mb-5 mb-lg-0">
                    <div class="js-counter h1 mb-1">87904</div>
                    <span>Job Offers</span>
                  </div>
                  <!-- End Col -->
                </div>
                <!-- End Row -->
              
            

Comma separated:

  • Preview
  • HTML
52147
Code Lines
24583
Projects
7348
Working Hours
87904
Job Offers
              
                <div class="row text-center">
                  <div class="col-lg-3 col-sm-6 mb-5 mb-lg-0">
                    <div class="js-counter h1 mb-1"
                          data-hs-counter-options='{
                           "isCommaSeparated": true
                         }'>52147</div>
                    <span>Code Lines</span>
                  </div>

                  <div class="col-lg-3 col-sm-6 mb-5 mb-lg-0">
                    <div class="js-counter h1 mb-1"
                          data-hs-counter-options='{
                           "isCommaSeparated": true
                         }'>24583</div>
                    <span>Projects</span>
                  </div>

                  <div class="col-lg-3 col-sm-6 mb-5 mb-lg-0">
                    <div class="js-counter h1 mb-1"
                          data-hs-counter-options='{
                           "isCommaSeparated": true
                         }'>7348</div>
                    <span>Working Hours</span>
                  </div>

                  <div class="col-lg-3 col-sm-6 mb-5 mb-lg-0">
                    <div class="js-counter h1 mb-1"
                          data-hs-counter-options='{
                           "isCommaSeparated": true
                         }'>87904</div>
                    <span>Job Offers</span>
                  </div>
                </div>
                <!-- End Row -->
              
            

Reduced to thousand:

  • Preview
  • HTML
52147
Code Lines
24583
Projects
7348
Working Hours
87904
Job Offers
              
                <div class="row text-center">
                  <div class="col-lg-3 col-sm-6 mb-5 mb-lg-0">
                    <div class="js-counter h1 mb-1"
                          data-hs-counter-options='{
                           "isReduceThousandsTo": true
                         }'>52147</div>
                    <span>Code Lines</span>
                  </div>

                  <div class="col-lg-3 col-sm-6 mb-5 mb-lg-0">
                    <div class="js-counter h1 mb-1"
                          data-hs-counter-options='{
                           "isReduceThousandsTo": true
                         }'>24583</div>
                    <span>Projects</span>
                  </div>

                  <div class="col-lg-3 col-sm-6 mb-5 mb-lg-0">
                    <div class="js-counter h1 mb-1"
                          data-hs-counter-options='{
                           "isReduceThousandsTo": true
                         }'>7348</div>
                    <span>Working Hours</span>
                  </div>

                  <div class="col-lg-3 col-sm-6 mb-5 mb-lg-0">
                    <div class="js-counter h1 mb-1"
                          data-hs-counter-options='{
                           "isReduceThousandsTo": true
                         }'>87904</div>
                    <span>Job Offers</span>
                  </div>
                </div>
                <!-- End Row -->
              
            

Methods

Parameters Description Default value
isCommaSeparated If true, then substitute a comma after thousandths false
isReduceThousandsTo Postfix after numerical value false