Skip to content

A jQuery plugin implementing a simple spinning counter animation.

Notifications You must be signed in to change notification settings

jsvenson/csCounter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

###csCounter

A jQuery plugin implementing a simple spinning counter animation.

Usage

$('#counter').csCounter({
	'number'          : 12345,
	'spinCount'       : 3,
	'digits'          : 5,
	'autoStart'       : true,
	'staggeredStarts' : true
});

Options

number : The final number the counter stops on.

spinCount : The number of times each digit will spin before stopping on it's ultimate value. Default 3.

digits : Indicates the number of digits to display in the counter (the counter will be left-padded with 0's if digits exceeds number.length). Default 5.

autoStart : Indicates whether the digits in the counter will start spinning at load or will wait for a 'start' signal. Default true.

staggeredStarts : Determines whether each digit in the counter will begin at once or be delayed by a random amount. Default true.

About

A jQuery plugin implementing a simple spinning counter animation.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages