jQuery Numerator
A jQuery plugin to easily animate numbers.
Demo page
http://garethdn.github.io/jquery-numerator/
Installation
Include script after the jQuery library:
Usage
Options
easing (string)
An optional parameter to specify the animation easing. Defaults to swing.
easing: 'linear'
duration (number)
An optional parameter specifying the length of the animation in milliseconds (ms). Defaults to 500 (1/2 a second).
duration: 2000
delimiter (string)
An optional parameter specifying character(s) used to delimit thousands values.
delimiter: ','
rounding (number)
This parameter specifies the number of decimal points to display. Defaults to 0.
rounding: 2
toValue (number)
The final value that you want the number to be animated to.
toValue: 205
onStart (function)
A function to be called when the animation beings.
{ }
onStep (function)
A function to be called at each step of the animation. Accepts two arguments, now and fx.
{ }
onComplete (function)
A function to be called when the animation is complete.
{ }
TODO
- Implement queue functionality
- Publish bower package
- Publish NPM package
License
MIT License (c) Gareth Nolan