微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

jquery – Tympanus Elastislide Carousel自动播放

我正在为我的网站使用鼓膜Elastislide Carousel Responsive jQuery插件.该插件在我的网站上完美运行.但是,我希望casousel会自动播放.

但是,我没有找到任何自动移动轮播的代码.

Slider Plugin链接http://tympanus.net/codrops/2011/09/12/elastislide-responsive-carousel/

我正在使用的java脚本

<script type="text/javascript">

    $( '#carousel' ).elastislide( {

    // orientation 'horizontal' || 'vertical'
    orientation : 'horizontal',// sliding speed
    speed : 500,// sliding easing
    easing : 'ease-in-out',// the minimum number of items to show.
    // when we resize the window,this will make sure minItems are always shown
    // (unless of course minItems is higher than the total number of elements)
    minItems : 3,// index of the current item (left most item of the carousel)
    start : 0,// click item callback
    onClick : function( el,position,evt ) { return false; },onReady : function() { return true; },onBeforeSlide : function() { return false; },onAfterSlide : function() { return false; }

    } );            

</script>

任何人都可以帮助滑块如何自动播放?我试过自动播放:是的.但是,不工作.

解决方法

尝试滚动属性,
scroll: 1

要么

你可以在这里找到答案,给出所有类型的旋转木马滑块

http://sorgalla.com/jcarousel/

也看到这些

http://sorgalla.com/projects/jcarousel/examples/static_auto.html

原文地址:https://www.jb51.cc/jquery/181216.html

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐