pbTouchSlider 介绍
简介
pbTouchSlider 是一款基于 jquery
的滑动响应式幻灯片插件,它除了一般幻灯片基本的如箭头控制、圆点控制、缩略图功能外,还支持响应式设计和滑动控制,同时 pbTouchSlider
还可以针对平板、手机设备分别设置高度,这使得 pbTouchSlider 能够适应各种设备。
api文档
$('#pbSlider0').pbTouchSlider({ slider_Wrap : '#yourId', // Assign a unique ID to the div.o-sliderContainer slider_Item : '.o-slider--item', // Single Item slider_Drag : true, // Your choise.. to dragIt or not to dragIt..this is the question... slider_Dots : { // Wanna see dots or not? class :'.o-slider-pagination', enabled : true }, slider_Arrows : { // Wanna see Arrows or not? class :'.o-slider-arrows', enabled : true }, slider_Threshold : 25, // Percentage of dragX before go to next/prev slider slider_Speed : 1000, slider_Ease : 'cubic-bezier(0.5, 0, 0.5, 1)', // see http://cubic-bezier.com/ slider_Breakpoints : { // Kind of media queries ( can add more if you kNow how to do it :D and if you need ) default : { height : 500 // height on desktop }, tablet : { height : 400, // height on tablet media : 1024 // tablet breakpoint }, smartphone : { height : 300, // height on smartphone media : 768 // smartphone breakpoint } } });
pbTouchSlider 官网
https://github.com/pirolab/pirolab.github.io
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。