Jump.js

A small, modern, dependency-free smooth scrolling library by callmecavs.

Install

Using NPM, install Jump.js, and add it to your package.json dependencies.

Instantiate

Simply import Jump, then instantiate it. No options are passed to the constructor.

Target

To jump to an element, pass a CSS selector as a string. To scroll from the current position, pass a number of pixels, positive or negative.

Back to Top