dd

jQuery slick 旋转木马


在线实例

实例演示

使用方法

<div class="slider single-item">
    <div><h3>1</h3></div>
    <div><h3>2</h3></div>
    <div><h3>3</h3></div>
    <div><h3>4</h3></div>
    <div><h3>5</h3></div>
    <div><h3>6</h3></div>
</div>
$('.single-item').slick();

参数详解

属性类型默认描述
accessibilitybooleantrueEnables tabbing and arrow key navigation
autoplaybooleanfalseEnables Autoplay
autoplaySpeedint(ms)3000Autoplay Speed in milliseconds
arrowsbooleantruePrev/Next Arrows
centerModebooleanfalseEnables centered view with partial prev/next slides. Use with odd numbered slidesToShow counts.
centerPaddingstring'50px'Side padding when in center mode (px or %)
cssEasestring'ease'CSS3 Animation Easing
customPagingfunctionn/aCustom paging templates. See source for use example.
dotsbooleanfalseShow dot indicators
draggablebooleantrueEnable mouse dragging
fadebooleanfalseEnable fade
easingstring'linear'Add easing for jQuery animate. Use with easing libraries or default easing methods
infinitebooleantrueInfinite loop sliding
lazyLoadstring'ondemand'Set lazy loading technique. Accepts 'ondemand' or 'progressive'.
onBeforeChangefunctionnullBefore slide callback
onAfterChangefunctionnullAfter slide callback
onInitfunctionnullCallback that fires after first initialization
onReInitfunctionnullCallback that fires after every re-initialization
pauseOnHoverbooleantruePause Autoplay On Hover
responsiveobjectnoneObject containing breakpoints and settings objects (see demo). Enables settings sets at given screen width.
slideelement'div'Element query to use as slide
slidesToShowint1# of slides to show
slidesToScrollint1# of slides to scroll
speedint(ms)300Slide/Fade animation speed
swipebooleantrueEnable swiping
touchMovebooleantrueEnable slide motion with touch
touchThresholdint5Swipe distance threshold
verticalbooleanfalseVertical slide mode

云盘内容


 jQuery插件大全打包

HTML5+CSS3+PHP+jQuery等示例
大小
170M(300+个文件)

注意:示例只是当前的内容,【下载】的是全部jQuery插件一起打包后的文件。

下载地址