1.0.2 • Published 7 years ago
jq-numscroll v1.0.2
NumScroll
Digital scrolling animation plugin
Install
npm i jq-numscroll -sDependencies
- jQuery
How to Require
You need to require/include Your file in the layout or the global application script
- CommonJS
require('jq-numscroll/src/js/core')- HTML (include before
</body>)
<script src='http://code.jquery.com/jquery-2.1.1.min.js' type='text/javascript'></script>
<script src="js/core.js" type="text/javascript" charset="utf-8"></script>Example of Usage
<!-- Put the numbers inside the element with the num class -->
<span class="num">888888</span>
<!-- Or, put the numbers inside the data-num attribute -->
<span class="num" data-num="888888"></span>Initializing
$(".num").numScroll();API Options
| Option | Default Value | Description |
|---|---|---|
| time | 1500 | Total time of the animation |
| delay | 0 | Delay time, before animation starts |
Example
