You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Michael Reber 43782b5ef0 cleanup some stuff 4 years ago
..
README.md cleanup some stuff 4 years ago
index.html cleanup some stuff 4 years ago
script.js cleanup some stuff 4 years ago
style.css cleanup some stuff 4 years ago

README.md

Vanilla JS Smooth Scroll

Pure JavaScript smooth to anchor scrolling

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.

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.

Feel free to use the script with the latest version from Github

Changelog:
  • 1.0.1:
    • Added some vendor Prefixes
    • Fixed a bug where on some devices the scrolltop was not calculated correctly and so the animation would run forever
    • Added the ability to let the user cancel the animation by scrolling