Return to Snippet

Revision: 47788
at June 16, 2011 09:08 by kbrown


Initial Code
$(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; 
}

Initial URL
http://jquery.malsup.com/cycle/timeout2.html

Initial Description


Initial Title
Jquery Cycle - Set Duration for each Slide

Initial Tags
jquery

Initial Language
jQuery