An open API service indexing awesome lists of open source software.

https://github.com/lemehovskiy/lem_counter

jQuery counter plugin
https://github.com/lemehovskiy/lem_counter

counter greensock gsap jquery jquery-plugin tweenlite

Last synced: 3 months ago
JSON representation

jQuery counter plugin

Awesome Lists containing this project

README

        

lem_counter
-------

### Demo

[https://lemehovskiy.github.io/lem-counter/](https://lemehovskiy.github.io/lem-counter/)

### Package Managers

```sh
# NPM
npm install lem_counter
```

### Installation

#### Include js

```html

```

#### Set HTML

```html


0

```

#### Call the plugin

```html

$('.counter').lemCounter({
value_to: 200
});

```

#### In result

```html


My website


0




$('.counter').lemCounter({
value_to: 200
});

```

### Data Attribute Settings

In lemCounter you can add settings using the data-lem-counter attribute. You still need to call
$(element).lemCounter()
to initialize lemCounter on the element.

Example:

```html



```

### Settings

Option | Type | Default
--- | --- | ---
value_from | int | 0
value_to | int | 0
locale | bool/string | false
value_to_from_content | bool | false
animate_duration | int | 2

### Browser support

* Chrome
* Firefox
* Opera
* IE10/11

### Dependencies

* jQuery 1.7
* Gsap