所属分类:垂直导航

jquery单页网站导航插件One Page Nav

34527 浏览 325 收藏 4 留言
ie兼容6

插件描述

一个轻量级的jQuery的单页网站导航插件。增加了单击后平滑滚动导航和当你浏览不同的部分时自动选择正确的导航项。

更新时间
2015-07-09 11:10
下载量
723
所需 JQ 币
0
分类
导航 / 垂直导航

详细内容

,     changeHash: false,     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      } });


如果你想要改变当用户单击导航,然后改变changeHash选项为true。

如果你想过滤项目从你的导航然后传入一个选择器过滤选项。

<ul id="nav">
    <li class="current"><a href="#section-1">Section 1</a></li>
    <li><a href="#section-2">Section 2</a></li>
    <li><a href="#section-3">Section 3</a></li>
    <li><a href="#section-4">Section 4</a></li>
    <li><a href="#section-5">Section 5</a></li>
    <li><a href="http://google.com" class="external">Some other link</a></li>
</ul>
$('#nav').onePageNav({
    filter: ':not(.external)'
});

如果你在iOS设备上单击链接导航导致 其他链接断掉,你可以通过滚动操作来解决这个问题

$('#nav').onePageNav({
    begin: function() {
        //Hack so you can click other menu items after the initial click
        $('body').append('<div id="device-dummy" style="height: 1px;"></div>');
    },
    end: function() {
        $('#device-dummy').remove();
    }
});

关键词:jQuery单页导航,jQuery One Page Nav,jQuery插件,滚动,一个页面导航,一个页面滚动,滚动菜单,滚动导航,单页滚动

讨论这个项目 (4)

假牙
请问移动端需要流出顶部header位置 怎么修改
我的王,my lord!
ie9 达不到效果
Mr.LTx

感觉真的不错

大圣

效果非常炫!

当前页面为只读展示,仅显示已审核留言;提交留言功能暂未开放。