Skip to content

alexherbo2/scroll.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

scroll.js

scroll.js is a JavaScript library for scrolling web pages.

Scrolls web pages smoothly. Works around the quirks of keydown events.

A live demo can be found in Krabby.

Installation

Add scroll.js to your project.

Usage

Example with modal.js:

const scroll = new Scroll

modal.map('Command', ['KeyJ'], ({ repeat }) => scroll.down(repeat), 'Scroll down', 'Scroll')
modal.map('Command', ['KeyK'], ({ repeat }) => scroll.up(repeat), 'Scroll up', 'Scroll')

You can find some examples in Krabby.

See the source for a complete reference.

Credits

About

A JavaScript library for scrolling web pages

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published