Created
September 20, 2012 09:45
-
-
Save spacebeers/3754964 to your computer and use it in GitHub Desktop.
Chained JQuery Cycle Slideshows
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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