Skip to content

GeorgiosP/Scroll-JS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published