🔔 Alert..!! Get 2 Month Free Cloud Hosting With $200 Bonus From Digital Ocean ACTIVATE DEAL

Just another jQuery plugin which provides a smooth scroll experience (with configurable offset, duration and easing effect) to your one page scrolling website.

smooth-scroll

Documentation

jquery.smoothscroll

Get started

Install

$ yarn add jquery.smoothscroll 

Load scripts

<script src="https://code.jquery.com/jquery-1.12.0.min.js"></script> <script src="http://cdnjs.cloudflare.com/ajax/libs/jquery-easing/1.3/jquery.easing.min.js"></script> <script src="/node_modules/jquery.smoothscroll/dist/jquery.smoothscroll.min.js"></script> 

Setting

<script> jQuery(function($) {   $('a[href^="#"]').SmoothScroll({     duration: 1000,     easing  : 'easeOutQuint'   }); }); </script> 

License

MIT


You May Also Like