Scrolls the page to the given element. Developed with Pure Javascript, without jquery or other libraries.
Avaliable soon! We need 200 stars in the repository to be approved on cdnjs. Collaborate!
Download Scrollto.js from GitHub.
Simply add the corresponding script to your website/application. No other scripts are needed. Always use minified versions, non-minified versions are only for study/modification. The latest versions are in the "src/currentversion" folder.
Avaliable soon!
<script src="scrollto.min.js"></script>Avaliable soon!
- Add the "scrollto" attribute to the element that will be clicked, set the target element's CSS selector as the attribute value:
<a scrollto = "CSS selector of the target element">-
- To go to the top of the screen use:
<a scrollto = "body">- If there is a fixed menu at the top just add the "menufixedtop" class:
<div class="menu menufixedtop">See the LICENSE file.