1.0.2 • Published 5 years ago

jq-numscroll v1.0.2

Weekly downloads
46
License
MIT
Repository
github
Last release
5 years ago

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

OptionDefault ValueDescription
time1500Total time of the animation
delay0Delay time, before animation starts

Example

Demo

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0-a-1

5 years ago

1.0.0-a

5 years ago

1.0.0

5 years ago