Usage
JS
In order to use this plugin on your page you will need to include the following script in the page.
<script src="assets/libs/waypoints/waypoints.min.js"></script>
<script src="assets/libs/countup/jquery.counterup.min.js"></script>
Initialization
Add the below init function before the closing </body>
tag, to enable it.
<script>
$(document).on('ready', function () {
$('.countup').counterUp({
delay: 25,
time: 2000
});
});
</script>
Examples
-
Simple Counter
5568<div class="countup">5568</div>
-
Heading
5568<div class="countup h3">5568</div>
-
Mix
568kHappy Clients
365 / 7Customer Support
<div class="row"> <div class="col-md-6"> <span class="h2"><span class="countup">568</span>k</span> <p class="mt-2 mb-0">Happy Clients</p> </div> <div class="col-md-6"> <span class="h2"><span class="countup">365</span> / 7</span> <p class="mt-2 mb-0">Customer Support</p> </div> </div>