New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

jq-numscroll

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jq-numscroll

Digital rolling cumulative animation

latest
Source
npmnpm
Version
1.0.2
Version published
Maintainers
1
Created
Source

NumScroll

Digital scrolling animation plugin

Install

npm i jq-numscroll -s

Dependencies

  • 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

Keywords

jQuery

FAQs

Package last updated on 13 Feb 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts