Animating Numbers Counting Up with jQuery Counter Up Plugin - Download Animating Numbers Counting Up with Counter-Up Plugin

Download Animating Numbers Counting Up with Counter-Up Plugin

Posted on

This time I will share jQuery Plugin and tutorial about Animating Numbers Counting Up with Counter-Up Plugin, hope it will help you in programming stack.

Animating Numbers Counting Up with jQuery Counter Up Plugin - Download Animating Numbers Counting Up with Counter-Up Plugin
File Size: 87.4 KB
Views Total: 172682
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
   

Counter Up is a lightweight and easy-to-use jQuery JavaScript plugin that dynamically counts up to a targeted number (from 0) at a specified speed.

Note that the Counter Up v2 has removed the jQuery dependency. You can download the jQuery v1 version here.

Installation:

1 # NPM
2 $ npm install counterup2 --save

Basic Usage (v2):

1. Define an end time in the span tag.

1 <span class="counter">12345</span>
2 <span class="counter">123.45</span>
3 <span class="counter">12,345.00</span>

2. Import the Counter Up library.

1 // ES6
2 import counterUp from 'counterup2'
1 <!-- Or From The CDN -->

3. Initialize the library and config the duration & delay and we’re done.

1 counterUp(document.querySelector('.counter') {
2   duration: 1000,
3   delay: 16
4 })

4. The plugin also works with the waypoints plugin that executes the count up animations whenever you scroll to the span tags.

1 <script src="waypoints.min.js"></script>
1 const el = document.querySelector('.counter')
2 new Waypoint( {
3     element: el,
4     handler: function() {
5       counterUp( el )
6       this.destroy()
7     },
8     offset: 'bottom-in-view'
9 })

Changelog:

2019-06-03

  • V2

This awesome jQuery plugin is developed by bfintal. For more Advanced Usages, please check the demo page or visit the official website.

source : jquery.net