GeorgiosP / Scroll-JS

Simple smooth scroll to script

Repository from Github https://github.comGeorgiosP/Scroll-JSRepository from Github https://github.comGeorgiosP/Scroll-JS

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

About

Simple smooth scroll to script

License:MIT License


Languages

Language:JavaScript 100.0%