Scroll-JS is a fast, lighweight way to get scroll to location on your website with little hastle.
//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
If you'd like to contribute, Follow the instruction below
- Fork the repository, make your desired changes
- Pull request to upstream: https://github.com/GeorgiosP/Scroll-JS.git
- Don't hesitate to create Issues for enhancements and feedback it's always appreciated
Scroll-JS is under the MIT Licence