Skip to content

A lightweight javascript framework to allow for horizontal scrolling with mousewheel.

Notifications You must be signed in to change notification settings

obelmont/horizontalscroll

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Horizontal Scroll

A lightweight javascript framework that replaces the default mouse scrolling function with one that scrolls horizontally

How it works

Horizontal Scroll creates an event listener that will trigger when a user scrolls over the selected element. It gathers the mousewheel delta and applies it to the documents scrollLeft property.

Usage

Download and install horizontalscroll.js either by importing or adding horizontalscroll.js to your header

<script src="horizontalscroll.js"></script>
import horizontalScroll from 'horizontalscroll';

Init:

horizontalScroll.init('.selector');

Destroy:

horizontalScroll.destroy();

About

A lightweight javascript framework to allow for horizontal scrolling with mousewheel.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published