jq-numscroll

1.0.2 • Public • Published

NumScroll

Digital scrolling animation plugin

Install

npm i jq-numscroll -s

Dependencies

  1. 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

Demo

Package Sidebar

Install

npm i jq-numscroll

Weekly Downloads

6

Version

1.0.2

License

MIT

Unpacked Size

78.7 kB

Total Files

11

Last publish

Collaborators

  • romanovich0195