鼓膜弹性体旋转木马自动播放 [英] Tympanus Elastislide Carousel autoplay

查看:69
本文介绍了鼓膜弹性体旋转木马自动播放的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为我的网站使用鼓室Elastislide Carousel响应式jQuery插件.该插件可以在我的网站上完美运行.但是,我希望转盘会自动播放.

I am using tympanus Elastislide Carousel Responsive jQuery plugin for my website. The plugin works perfectly on my site. But, I want the casousel will play automacily.

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

But, I don't find any code for move carousel automatically.

滑块插件"链接: http://tympanus.net/codrops/2011/09/12/elastislide-sensitive-carousel/

我正在使用的Java脚本

The java script I am using

<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>

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

Any one can help how the slider will play automaticaly? I tried autoplay: true. But, not working.

推荐答案

尝试滚动属性,

scroll: 1

您可以在这里找到答案,并提供所有类型的轮播滑块

you can find you answer here, all type of carousel slider given

http://sorgalla.com/jcarousel/

另请参阅

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

这篇关于鼓膜弹性体旋转木马自动播放的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆