Skip to content

Instantly share code, notes, and snippets.

@spacebeers
Created September 20, 2012 09:45
Show Gist options
  • Save spacebeers/3754964 to your computer and use it in GitHub Desktop.
Save spacebeers/3754964 to your computer and use it in GitHub Desktop.
Chained JQuery Cycle Slideshows
If any one ever finds a need for this here's an example of 3 jQuery Cycle slidehows chained to play one after the other.
$(window).load(function() {
// Homepage galleries
$('.view-homepage-buildings').cycle({
fx : 'fade',
speed : 3000,
timeout : 0,
after : function() {
console.log('after');
$('.view-homepage-aviation').cycle('next');
}
});
$('.view-homepage-aviation').cycle({
fx : 'fade',
speed : 3000,
timeout : 0,
after : function() {
console.log('after 2');
$('.view-homepage-text').cycle('next');
}
});
$('.view-homepage-text').cycle({
fx : 'fade',
speed : 3000,
timeout : 0,
after : function() {
console.log('after 3');
$('.view-homepage-buildings').cycle('next');
}
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment