/jquery.scrollNav

Elegant single page/anchor navigation

Primary LanguageJavaScript

jquery.scrollNav

Elegant single page/anchor navigation

Features

  • Intelligently detect what "page" is scrolled into view.
  • Optionally set scroll offset.

Usage

[jQuery set with navigation <a> elements].scrollNav([optional options object]);

Example: $('#main_nav a').scrollNav({ offset: -60 });

Options

  • offset - offset all pages in pixels (optional).

License

Copyright 2012, Markus Hedlund, Snowfire.
Licensed under the MIT License.
Redistributions of files must retain the above copyright notice.