This is a lightweight jquery single page Web site navigation plugin. Added a smooth scrolling navigation after clicking and automatically selecting the correct navigation items when you browse through different sections.
Changehash:false, change the Changehash option to True when the user clicks Navigate.
SCROLLSPEED:750,
scrollthreshold:0.5,
Filter: ",
Easing: ' Swing ',
Begin:function () {//i get fired when the animation is starting},
End:function () {//i get fired when the animation is ending},
Scrollchange:function ($currentListItem) {//i Get fired when you enter a section and I pass the list item of the Section}});
Select a navigation in the project → Pass in a selector filter option.
Select to the navigation, call Onepagenav ();
$ (' #nav '). Onepagenav (
Filter: ': not (. external) '
});
If you click Link Navigation on your iOS device to cause other links to break, you can scroll to fix the problem
$ (' #nav '). Onepagenav ({
Begin:function () {
Hack so can click on other menu items after the initial click
$ (' body '). Append (' <div id= "Device-dummy" style= "height:1px;" ></div> ');
},end:function () {
$ (' #device-dummy '). Remove ();
}
});
jquery single page site navigation plugin one page nav