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

nicemove

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

nicemove

super smooth scrolling for touch devices

latest
Source
npmnpm
Version
0.1.3
Version published
Maintainers
1
Created
Source

nicemove

super smooth scrolling for touch devices

Usage

var instance = new NiceMove(el, scrollHorizontal, scrollVertical, options);

el is dom object, scrollHorizontal and scrollVertical are boolean values, options is javascript object

options object:

{
	/*Number*/anchor: // pull to refresh effects, support foure directions
	{
		/*Number*/top,
		/*Number*/bottom,
		/*Number*/left,
		/*Number*/right
	},
	/*Number*/moveThresh, //minimum finger moves to activate the element move
	/*Bool*/isPagedX, //if the element should move by horizontal pages
	/*Bool*/isPagedY, //if the element should move by vertical pages
	/*function*/ onPageChanged( { target, index } ), // callback when page changed
	/*function*/ onFirstMove(),   // callback when the element was moved by the first time
}

APIs

slideTo(x,y[,milliseconds,easing])

move the element by script

Keywords

html5

FAQs

Package last updated on 22 Dec 2018

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