README
Smooth-scroll-page
A way too smoothly scroll through a web page with minimal effort
Using
In order to use the package you have to:
- Download the index.js file
- Place it somewhere in your project directory
- Import it in your html file
<script src="scroll.js"></script>
- Add another script tag/file with following code inside
smoothScroll.init('sectionClassName', 'linkClassName')
Where 1. sectionClassName has to equal name of the class all sections you want to scroll through have in common 2. linkClassName has to equal name of the class all anchor links to your scroll sections have in common(optional)