I was trying to repeat the entire function in a loop but nothing works. I tried Loop () callback, set interval(). Can someone point me to the right direction?
What would be the best method to repeat the entire animation? Thanks
$(document).ready(function() {
$("#slide1").fadeIn(500, function() {
$("#slide2").fadeIn(500, function() {
$("#slide3").fadeIn(500, function() {
$("#slide4").fadeIn(500, function() {
$("#slide5").fadeIn(500, function() {
$("#slide1").fadeOut(500, function() {
$("#slide6").fadeIn(500, function() {
$("#slide7").fadeIn(500, function() {
$("#slide8").fadeIn(500, function() {
$("#slide9").fadeIn(500, function() {});
});
});
});
});
});
});
});
});
});
});
Converted the code you have like below,
DEMO: http://jsfiddle.net/RuX5d/5/
I am not very sure about what you want.. but I believe you want to
fadeInandfadeOutcontent repeatedly.If so, try my demo and code below,
DEMO: http://jsfiddle.net/RuX5d/1/