Skip to content

marcovincit/jquery-simple-counter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

jQuery Simple Counter


.html

<script type="text/javascript" src="http://code.jquery.com/jquery-2.1.0.min.js"></script>
<script type="text/javascript" src="jQuerySimpleCounter.js"></script>
<div id="count-test"></div>

.js

$('#count-test').jQuerySimpleCounter({
  end:100,
  duration: 4000
});

More options:

start:  0, // inicial number
end:    100, // final number
easing: 'swing',
duration: 400,
complete: function(){console.log('Finished!')}

Credits:

Joss Crowcroft

Use jQuery.animate() to increment / decrement numeric text or an element’s value

About

Simple jQuery Animate Counter

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published