jquery single page site navigation plugin one page nav

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.