I would like to know how to make the below code loop, I know I need some sort of callback/setInterval but how do I implement this? Many thanks!
$('.1').fadeIn(2500, function() {
$('.2').fadeIn(2500, function() {
$('.3').fadeIn(2500, function() {
$('.3').fadeOut(2500, function() {
$('.2').fadeOut(2500, function() {
$('.1').fadeOut(2500, function() {
});
});
});
});
});
});
P.S. This code runs on document ready
Based on the OP’s comments this should be an infinite loop of fading in an out. Try the following