Counter-Up

Counter-Up is a lightweight jQuery plugin that counts up to a targeted number when the number becomes visible.

  • Owner: bfintal/Counter-Up
  • Platform:
  • License:: GNU General Public License v2.0
  • Category::
  • Topic:
  • Like:
    0
      Compare:

Github stars Tracking Chart

Please use Counter-Up2 instead.

Counter-Up

Counter-Up is a jQuery plugin that animates a number from zero (counting up towards it). It supports counting up:

  • integers 12345
  • floats 0.1234
  • formatted numbers 1,234,567.00

Features:

  • Auto-detect for integers, floats or formatted numbers
  • The plugin will also use the number of decimal places the original number is using.
  • Lightweight: ~1kb
  • Minimal setup

Requires waypoints.js

Demo

DEMO

Usage

Include

<script src="http://cdnjs.cloudflare.com/ajax/libs/waypoints/2.0.3/waypoints.min.js"></script>
<script src="jquery.counterup.min.js"></script>

HTML

<span class="counter">1,234,567.00</span>
<span>$</span><span class="counter">1.99</span>
<span class="counter">12345</span>

jQuery

$('.counter').counterUp();

or with extra parameters

$('.counter').counterUp({
    delay: 10,
    time: 1000
});

delay - The delay in milliseconds per number count up

time - The total duration of the count up animation

Social Stuff

Twitter: @bfintal & @gambitph

Google+: +Benjamin Intal

Main metrics

Overview
Name With Ownerbfintal/Counter-Up
Primary LanguageJavaScript
Program languageJavaScript (Language Count: 1)
Platform
License:GNU General Public License v2.0
所有者活动
Created At2013-11-25 16:54:52
Pushed At2021-08-22 12:06:19
Last Commit At2021-08-22 20:06:19
Release Count2
Last Release Name1.0.0 (Posted on )
First Release Name1.0 (Posted on )
用户参与
Stargazers Count745
Watchers Count24
Fork Count710
Commits Count11
Has Issues Enabled
Issues Count52
Issue Open Count46
Pull Requests Count0
Pull Requests Open Count16
Pull Requests Close Count9
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private