I have defined two slideshow by JQuery cycle below:
$('#slideShow').cycle({
fx: 'fade',
timeout: 3000,
speed: 2000,
random: 1
});
$('#slideText').cycle({
fx: 'blindZ',
timeout: 3000,
speed: 2000,
random: 1
});
I have validated manually and they are in sync. Actually is that just luck or I need to define something like below to ensure they are in sync:
Thanks for your kind assistance.
As long as you start your two slideshows one after another, it should be ok. Since they have the same timeouts and are started together, they should stay in sync.
Otherwise you could do something like this ;
$('#slideShow').cycle({
fx: 'fade',
timeout: 3000,
speed: 2000,
random: 1,
after: function(currSlideElement, nextSlideElement, options, forwardFlag) {
$('#slideText').cycle('next');
}
});
$('#slideText').cycle({
fx: 'blindZ',
timeout: 0,
speed: 2000,
random: 1
});
The second slideshow is deactivated, and the first one sends a 'next' command after each change.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With