jquery滚动弹出顶部导航插件headhesive
作者:admin来源:网络浏览:次时间:2014-05-01 20:14:03我要评论
内容介绍
headhesive.js是一个导航悬浮特效,指定当你浏览器滚动到某个位置时导航开始悬浮,随着滚动条下拉,导航随着向下移动。
核心代码
复制代码代码如下:
- <script type="text/javascript" src="../dist/headhesive.js"></script>
- <script>
-
- // Set options
- var options = {
- offset: '#showHere',
- classes: {
- clone: 'banner--clone',
- stick: 'banner--stick',
- unstick: 'banner--unstick'
- }
- };
-
- // Initialise with options
- var banner = new Headhesive('.banner', options);
-
- // Headhesive destroy
- // banner.destroy();
- </script>
下载资源:146 次
下载积分:0 分