pbTouchSliderjQuery幻燈片插件
簡介
pbTouchSlider 是一款基于 jquery 的滑動響應(yīng)式幻燈片插件,它除了一般幻燈片基本的如箭頭控制、圓點(diǎn)控制、縮略圖功能外,還支持響應(yīng)式設(shè)計和滑動控制,同時 pbTouchSlider 還可以針對平板、手機(jī)設(shè)備分別設(shè)置高度,這使得 pbTouchSlider 能夠適應(yīng)各種設(shè)備。
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
}
}
});評論
圖片
表情
