Succession of fadeIn functions
I have a succession of fadeIn functions. I have coded it like so. It works.
$(document).ready(function(){
$("#div1").
fadeIn
(
2000,
function(){
$("#div2").
fadeIn
(
2000,
function(){
$("#div3").
fadeIn
(
2000,
function(){
$("#div4").
fadeIn
(
2000,
function(){
$("#div5").
fadeIn
(
2000
);
}
);
}
);
}
);
}
);
});
I assume there is a better way to do this. How?