jquery.counto

1.1.0-u • Public • Published

A jQuery plugin to change numeric values with a counting animation

Install

First, include it after the jQuery script:

<script src="https://unpkg.com/jquery.counto"></script>

or import/require it and init on a jQuery instance:

import init_counto from 'jquery.counto';
 
init_counto(jQuery);

Usage

Instead of

$('#my-number').text(number);

use

$(`#my-number`).counto(number, timeout, ondone);

where

ondone.call(this, number, old_number);

xNumber

If you include xNumber.js, counto will automatically use it to parse formated numbers.

Alternatives

Package Sidebar

Install

npm i jquery.counto

Weekly Downloads

29

Version

1.1.0-u

License

MIT

Unpacked Size

46 kB

Total Files

15

Last publish

Collaborators

  • duzun