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

horizontal-scroll

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

horizontal-scroll

Horizontal scroll with inertia

latest
Source
npmnpm
Version
1.1.0
Version published
Weekly downloads
22
-67.16%
Maintainers
1
Weekly downloads
 
Created
Source

horizontal-scroll

Installation

npm install -S horizontal-scroll

Usage & API

HTML

<div class="container">
	<div class="block"></div>
	<div class="block"></div>
	<div class="block"></div>
	<div class="block"></div>
	<div class="block"></div>
</div>

Javascript

var blocks = document.getElementsByClassName('block');
var container = document.getElementsByClassName('container');
var hs = new HorizontalScroll.default({
	blocks : blocks,
	container: container,
});

Options

container Node DOM null

The list container.

blocks Node DOM null

Item in the list.

isAnimated Boolean false

If true, the list should have a skew relative to the scroll speed.

spring Number 0.1

Friction of the scroll.

skewReducer Number 20

Strength of the skew effect.

skewLimit Number 20

Limit value of the skew effect.

Example

https://corentinfardeau.github.io/horizontal-scroll/

License

MIT.

Keywords

scroll

FAQs

Package last updated on 27 Sep 2017

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