Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sophilabs/jquery-counter
jQuery.counter (javascript + css3)
https://github.com/sophilabs/jquery-counter
jquery-counter jquery-plugin unmaintained
Last synced: 18 days ago
JSON representation
jQuery.counter (javascript + css3)
- Host: GitHub
- URL: https://github.com/sophilabs/jquery-counter
- Owner: sophilabs
- License: mit
- Created: 2012-05-10T22:09:51.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2017-05-17T17:14:47.000Z (over 7 years ago)
- Last Synced: 2024-12-10T12:49:23.748Z (24 days ago)
- Topics: jquery-counter, jquery-plugin, unmaintained
- Language: CSS
- Homepage: http://sophilabs.github.com/jquery-counter
- Size: 226 KB
- Stars: 165
- Watchers: 22
- Forks: 38
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# jQuery.counter (javascript + css3)
Info + Demo: http://sophilabs.github.com/jquery-counter
![jQuery Counter](http://i.imgur.com/ub7D9.png)
A jQuery counter based on http://code.google.com/p/jquery-countdown with more options.
## Options
Options can be set by attribute `data-="value"` or in the options hash on counter initialization: `$(element).counter({name: value, ...})`**`direction: up|down`** Counter direction
**`format: string`** Defines the format and the limit for each part - _e.g: 23:59:59_
**`interval: number`** Defines the time between each counter increment - _by default 1000 milliseconds_
**`stop: string`** Defines the counter limit - _eg: 10:00 (ten minutes)_
## Methods
Methods can be call using `$(element).counter('method')`**`play`** Play counter
**`reset`** Reset counter
**`stop`** Stop counter
## Events
**`counterStop`** Raised when the counter reach limit
## Example
### 10 seconds countdown:0:10
$('.counter').counter();
### 120 seconds count:
0
$('.counter').counter();
## License
jQuery.counter is Copyright (c) 2017 sophilabs, inc. It is free software, and may be
redistributed under the terms specified in the [license](/LICENSE) file.## About
[![sophilabs.co](https://s3.amazonaws.com/sophilabs-assets/logo/logo_300x66.gif)](https://sophilabs.co)
jQuery.counter is maintained and funded by sophilabs, inc. The names and logos for
sophilabs are trademarks of sophilabs, inc.