1.1.0-u • Published 4 years ago

jquery.counto v1.1.0-u

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

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