Skip to content

Repository files navigation

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

About

jQuery plugin to scroll to section from menu

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages