JQuery的循环功能

JQuery的循环功能

问题描述:

http://malsup.com/jquery/cycleJQuery的循环功能

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

我想它,所以我的幻灯片淡出,等待5秒钟,然后淡出到下一个幻灯片 - 我一直在尝试了一段时间,但无济于事 - 任何帮助吗?

尝试:

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

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

幻灯片之间的延迟的选项

timeout 

所以,你应该使用:

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