jQuery Counter
A jQuery plugin to count up a number with start on element visible feature - DOCS
Getting Started
1. Install package using NPM or download it from the repository;
npm install jquery-counter --save
jQuery and Counter
2. Require
or
;;
4. Add data attributes
400
Through data properties you can set the following parameters:
Prop | Type | Default | Note |
---|---|---|---|
offset |
String |
200 | Element top offset (in pixels) based on view top offset to start the animation |
duration |
String |
3000 | Time (in milliseconds) to count it up |
delay |
String |
200 | Delay (in milliseconds) to start the animation as per the element becomes visible |
5. Call Counter
;
JavaScript Options
;
Methods
;