# Vanilla JS Smooth Scroll

 <strong>Pure JavaScript smooth to anchor scrolling</strong>
<p>
Easy to implement and with some great features to enhance flexibility. The script will find all the links on your site that are hash based and linking to the current file, all other links are ignored.
</p>
<p>
Clicking on a hash based link will force your website to scroll smoothly down to the area defined with either the same id or name attribute as the current hash.
</p>
<p>
Feel free to use the script with the latest version from <a href="https://github.com/basticodes/scrollToSmooth" target="_blank">Github</a>
</p>
<strong>Changelog:</strong>
<ul>
<li>1.0.1: </li>
<ul>
<li>Added some vendor Prefixes</li>
<li>Fixed a bug where on some devices the scrolltop was not calculated correctly and so the animation would run forever</li>
<li>Added the ability to let the user cancel the animation by scrolling</li>
</ul>
</ul>