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="../node_modules/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>
$(document).on('ready', function () {
// initialization of counters
$('.js-counter').each(function() {
var counter = new HSCounter($(this)).init();
});
});
</script>
Examples
Comma separated:
Reduced to thousand:
Methods
Parameters | Description | Default value |
---|---|---|
isCommaSeparated
|
If true , then substitute a comma after thousandths |
false
|
isReduceThousandsTo
|
Postfix after numerical value |
false
|