DD Full Screen Slider 是一款基于 jQuery 和jquery.mousewheel.js 的页面全屏滚动插件。
淘建站为您提供更多_其它特效_页面滚动_滚动_全屏,在此特别感谢您对我们的支持与厚爱!
演示不了,点击反馈
下载 400 次
觉得不错,可打赏下作者
免费共享
DD Full Screen Slider有以下特点:
- 支持桌面和移动设备
- 多种方式切换:鼠标滚轮、鼠标拖拽、圆点导航、键盘方向键
- 支持锚点/哈希
- 在不支持 CSS3 动画的浏览器中自动回滚使用 jQuery 动画
- 支持多种浏览器,包括 IE8(部分)
HTML
<section id="sucaiq" class="dd_fullscreenslider">
<div class="slidewrapper">
<article class="slide">第一屏</article>
<article class="slide">第二屏</article>
<article class="slide">第三屏</article>
<article class="slide">第四屏</article>
<article class="slide">第五屏</article>
</div>
</section>引入jQuery库、ddfullscreenslider相关组件及鼠标插件jquery.mousewheel.min.js
<link rel="stylesheet" href="css/ddfullscreenslider.css">
<script src="js/jquery-1.11.3.min.js"></script>
<script src="js/jquery.mousewheel.min.js"></script>
<script src="js/ddfullscreenslider.js"></script>jQuery
var fss;
$(function() {
fss = new ddfullscreenslider({
sliderid: 'dowebok'
});
}); | 参数 | 描述 | 默认值 |
| sliderid(必须) | 绑定ID | 空 |
| addHash | 使用锚链接 | true |
| transitionDuration | 动画持续时间,以秒为单位 | 0.5 |
| keycodeNavigation | 键盘控制的按键值 | [40, 38] |
| swipeconfig | 针对触摸设备的配置 | {peekamount: 100, mousedrag: true} |
| onslide | 回调函数 | 空 |

