https://github.com/duzun/jquery.counto
A jQuery plugin to display numeric values with a nice animation
https://github.com/duzun/jquery.counto
Last synced: 2 months ago
JSON representation
A jQuery plugin to display numeric values with a nice animation
- Host: GitHub
- URL: https://github.com/duzun/jquery.counto
- Owner: duzun
- License: mit
- Created: 2015-07-31T07:52:39.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2020-01-31T15:17:08.000Z (over 5 years ago)
- Last Synced: 2025-05-06T19:11:38.592Z (5 months ago)
- Language: JavaScript
- Size: 17.6 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.MD
- License: LICENSE
Awesome Lists containing this project
README
# A jQuery plugin to change numeric values with a counting animation
## Install
First, include it after the `jQuery` script:
```html
```
or import/require it and init on a `jQuery` instance:
```js
import init_counto from 'jquery.counto';init_counto(jQuery);
```## Usage
Instead of
```js
$('#my-number').text(number);
```use
```js
$(`#my-number`).counto(number, timeout, ondone);
```where
```js
ondone.call(this, number, old_number);
```### xNumber
If you include `xNumber.js`, `counto` will automatically use it to parse formated numbers.
### Alternatives
- [countUp.js](https://inorganik.github.io/countUp.js/)