Using bower:
bower install jquery.localScroll
If you want the latest stable version, get the latest release from the releases page.
-
Requires jQuery.scrollTo (http://github.com/flesler/jquery.scrollTo)
-
The hash of settings is passed in to jQuery.scrollTo, so, in addition to jQuery.localScroll's settings, you can use any of jQuery.scrollTo's. Check that plugin's documentation for further information.
-
If you want to convert the links from ALL over the page, with the same settings, just call
$.localScroll(...) instead of $ (...).localScroll(...) -
Most of this plugin's defaults, belong to jQuery.scrollTo, check it's demo for an example of each option.