【问题标题】:JQuery Cycle FunctionjQuery循环函数
【发布时间】:2010-03-16 21:16:50
【问题描述】:

http://malsup.com/jquery/cycle

$('#slides').cycle({
            fx:    'fade', 
            sync:   0, 
            delay: -5000 
});

我想要它让我的幻灯片淡入,等待 5 秒钟然后淡出到下一张幻灯片 - 我已经尝试了一段时间但无济于事 - 有什么帮助吗?

【问题讨论】:

    标签: jquery slider


    【解决方案1】:
    $('#slides').cycle({
                // The 'fade' fx it's the default transition of Cycle
                timeout: 5000, // Between every transition
                delay: 5000 // Before first transition
    });
    

    【讨论】:

      【解决方案2】:

      试试:

      $('#slides').cycle({
          fx:    'fade', 
          sync:   0, 
          timeout: 5000
      });
      

      【讨论】:

        【解决方案3】:

        幻灯片之间的延迟选项是

        timeout
        

        所以你应该使用:

        $('#slides').cycle({
                fx:    'fade', 
                sync:   0, 
                timeout: 5000 
        });
        

        【讨论】:

          猜你喜欢
          • 2016-02-04
          • 2016-12-21
          • 1970-01-01
          • 2017-10-24
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          相关资源
          最近更新 更多