mechi
mechi

Reputation: 11

JQuery Cycle Function

http://malsup.com/jquery/cycle

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

I want it so my slides fade in, wait 5 seconds then fade out to the next slide - I've been trying for a while but to no avail - any help?

Upvotes: 1

Views: 2110

Answers (3)

Thiago Belem
Thiago Belem

Reputation: 7832

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

Upvotes: 1

Bernhard Hofmann
Bernhard Hofmann

Reputation: 10391

The option for delays between slides is

timeout

So you should use:

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

Upvotes: 0

John Rasch
John Rasch

Reputation: 63435

Try:

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

Upvotes: 0

Related Questions