Skip to content

Latest commit

 

History

History
25 lines (20 loc) · 467 Bytes

README.md

File metadata and controls

25 lines (20 loc) · 467 Bytes

Smooth Scroll

This vanila JS smoothscroll module can be used instead of scroll-behavior: smooth css which is unsupported across browsers.

Use case is similar to using this jQuery:

$('html,body').animate({
    scrollTop: offset
}, 1000);

Install the demo using

npm install

Build for development

npm run dev

Or production

npm run build