jQuery One Page Nav

A lightweight jQuery plugin for the navigation on one-page sites. Adds smooth scrolling when clicking on the navigation and automatically selects the correct navigation items as you are scrolling through the different sections.

Usage

$(document).ready(function() {
	$('#nav').onePageNav();
});

Markup

<ul id="nav">
	<li class="current"><a href="#intro">Intro</a></li>
	<li><a href="#usage">Usage</a></li>
	<li><a href="#examples">Examples</a></li>
</ul>

Options

Examples