Skip to content

ramakrishnamundru/CoutUpCircle

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CoutUpCircle

Light weight jQuery Plugin for counting up

How to use

The number in the HTML-Elemnt have to stay alone without any unit. Apply the CoutUpCircle Plugin with the following JavaScript Code:

$('element').CountUpCircle();

You have following options:

$('#count-box').CountUpCircle({
  duration: 2000 /* Integer - Unit: Millisecounds; How long to Count; Default value: 5000  */,
  opacity_anim: true /* Boolean; Raise the Opacity of the element from 0 to 100%; Default: false */,
  step_divider: 1 /* setp forward in bigger steps, for example for bigger numbers like >1000 */,
  prefix:""/*string to be prepended in front of number*/,
  postfix:""/*string to be appended after the number*/
});

Examples

This is a simple example, which is available in the demo folder.

<div class="wrapper">
  <div id="count-box">19</div> 
</div>
$('#count-box').CountUpCircle({
  duration: 2000,
  opacity_anim: true,
  step_divider: 1,
  prefix:"speed",
  postfix:"KMPS"
});

Big number example

<div class="wrapper">
  <div id="count-box">819757</div> 
</div>
$('#count-box').CountUpCircle({
  duration: 4000,
  opacity_anim: false,
  step_divider: 3000
});

About

jQuery Plugin that count up

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 37.5%
  • HTML 33.1%
  • CSS 29.4%