/ Published in: jQuery

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
$(function() { $('#animationBlock').cycle({ delay: -1000, fx: 'fade', speed: '1000', timeoutFn: calculateTimeout }); }); // timeouts per slide (in seconds) var timeouts = [3, 3, 3, 3, 10]; function calculateTimeout(currElement, nextElement, opts, isForward) { var index = opts.currSlide; return timeouts[index] * 1000; }
URL: http://jquery.malsup.com/cycle/timeout2.html
Comments
