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

The jQuery scroll2Section plugin lets you create a sticky navbar that smoothly scrolls the page to specific content sections while highlighting the current nav item.

smooth-scroll One-Page-Scrolling scrollspy

Documentation

scroll2Section

jQuery plugin to scroll page

Usage

Simple to use:

$(selector).scroll2Section({options});

selector can be one or more elements

options:      menu: #menu,              //selector of menu [unique selector]     offSetTop:0,              // page offset top     activeClass:'active',     // class to active menu link     activeParent:'li'         // parent closest of menu link 

See examples: http://dialogo.digital/public/projects/scroll2section/

*** See an example into a example directory

Versions

Version 1.1

- Use one selector to menu - return menu element - bind update event - use navfix class to calculate section position 

Prerequisites

This plugin require jQuery

License

This project is licensed under the MIT License - see the LICENSE.md file for details


You May Also Like