Skip to content

Latest commit

 

History

History
17 lines (16 loc) · 866 Bytes

File metadata and controls

17 lines (16 loc) · 866 Bytes

Scroll-JS

What is Scroll-JS?

Scroll-JS is a fast, lighweight way to get scroll to location on your website with little hastle.

Usage

//uses native bind
document.getElementById('scrollStart').addEventListener('click', doScrolling.bind(null, '#scrollEnd', 800))

Add an Id to the element you want users to click and specify the Id you want to scroll to as the example above click scrollStart and will scroll to scrollEnd set the scroll speed in milliseconds set here to 800

Development

If you'd like to contribute, Follow the instruction below

Licence

Scroll-JS is under the MIT Licence