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
- Host: GitHub
- URL: https://github.com/lemehovskiy/lem_counter
- Owner: lemehovskiy
- Created: 2018-01-15T19:23:21.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-02-26T09:14:36.000Z (about 7 years ago)
- Last Synced: 2025-02-09T16:47:48.903Z (3 months ago)
- Topics: counter, greensock, gsap, jquery, jquery-plugin, tweenlite
- Language: JavaScript
- Homepage:
- Size: 1.41 MB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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