# counterup

> A lightweight jQuery plugin that counts up to a targeted number when the number becomes visible.

Latest version **1.0.2** (published 2016-06-03) · 0 weekly downloads

## Install

```sh
npm install counterup
pnpm add counterup
yarn add counterup
bun add counterup
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2016-06-03 |
| First published | 2016-03-16 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 737 |
| Author | Benjamin Intal |
| Maintainers | dodopok |
| Keywords | jquery, plugin, counter, count, up, number, figure, numeric, int, float, animation |

## Links

- npm: https://www.npmjs.com/package/counterup
- Repository: https://github.com/bfintal/Counter-Up
- Issues: https://github.com/bfintal/Counter-Up/issues
- npm.io page: https://npm.io/package/counterup

## Dependencies (2)

- [jquery](https://npm.io/package/jquery.md) >=1.5
- [waypoints](https://npm.io/package/waypoints.md) >=2.0

## Alternatives

- [eslint-plugin-sonarjs](https://npm.io/package/eslint-plugin-sonarjs.md) — 2.9M weekly downloads
- [eslint-config-expo](https://npm.io/package/eslint-config-expo.md) — 1.5M weekly downloads
- [@matter/protocol](https://npm.io/package/@matter/protocol.md) — 63.5K weekly downloads
- [@eventcatalog/linter](https://npm.io/package/@eventcatalog/linter.md) — 24.8K weekly downloads
- [@pandacss/eslint-plugin](https://npm.io/package/@pandacss/eslint-plugin.md) — 18.7K weekly downloads

## Recent versions

- 1.0.2 (latest) — 2016-06-03
- 1.0.1 — 2016-03-16
- 1.0.0 — 2016-03-16

## README

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](http://imakewebthings.com/jquery-waypoints/)*

Demo
====

**[DEMO](http://bfintal.github.io/Counter-Up/demo/demo.html)**

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](https://twitter.com/bfintal) & [@gambitph](https://twitter.com/gambitph)

Google+: <a href='https://plus.google.com/113101541449927918834' rel='author'>+Benjamin Intal</a>

---
_Source: https://npm.io/package/counterup · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
