固定背景实现的背景滚动特效
2013-05-19 00:00
309 查看
日期:2013-5-19 来源:GBin1.com
![](http://static.oschina.net/uploads/img/201305/19100313_pVxb.jpg)
在线演示
分享一个来自corpse的固定背景滚动特效,使用background-attachment: fixed和导航菜单,页面会非常平滑的滚动。
HTML
CSS
via 极客社区
来源:固定背景实现的背景滚动特效
![](http://static.oschina.net/uploads/img/201305/19100313_pVxb.jpg)
在线演示
分享一个来自corpse的固定背景滚动特效,使用background-attachment: fixed和导航菜单,页面会非常平滑的滚动。
HTML
<div id="cbp-fbscroller" class="cbp-fbscroller"> <nav> <a href="#fbsection1" class="cbp-fbcurrent">Section 1</a> <a href="#fbsection2">Section 2</a> <a href="#fbsection3">Section 3</a> <a href="#fbsection4">Section 4</a> <a href="#fbsection5">Section 5</a> </nav> <section id="fbsection1"></section> <section id="fbsection2"></section> <section id="fbsection3"></section> <section id="fbsection4"></section> <section id="fbsection5"></section> </div>
CSS
/* Set all parents to full height */ html, body, .container, .cbp-fbscroller, .cbp-fbscroller section { height: 100%; } /* The nav is fixed on the right side and we center it by translating it 50% (we don't know it's height so we can't use the negative margin trick) */ .cbp-fbscroller > nav { ........
via 极客社区
来源:固定背景实现的背景滚动特效
相关文章推荐
- 固定背景实现的背景滚动特效示例分享
- 固定背景实现的背景滚动特效
- 固定背景实现的背景滚动特效
- 《MFC游戏开发》笔记七 游戏特效的实现(一):背景滚动
- 《MFC游戏开发》笔记七 游戏特效的实现(一):背景滚动
- 《MFC游戏开发》笔记七 游戏特效的实现(一):背景滚动
- 《MFC游戏开发》笔记七 游戏特效的实现(一):背景滚动
- 《MFC游戏开发》笔记七 游戏特效的实现(一):背景滚动
- CSS图书馆 » HTML & CSS » 利用CSS固定背景交替实现视差滚动效果 利用CSS固定背景交替实现视差滚动效果
- 利用CSS固定背景交替实现视差滚动效果
- H5实战(六):固定边栏滚动特效
- 【前端】jQuery实现锚点向下平滑滚动特效
- Asp.net 2.0 自定义控件开发[实现GridView多行表头固定表体滚动效果][示例代码下载]
- 用roll.js实现的图片自动滚动+鼠标触动的特效
- 实现不间断向上滚动文字的特效
- 原生js实现tab选项卡里内嵌图片滚动特效代码
- 【Cocos2d-x】新手自学(九)滚动背景..实现无限卷轴效果(2.0.1版本)
- 网页背景图片固定,不随网页滚动
- Pageadmin如何实现滚动广告图片特效(一)