Trying to use JQuery to make several elements, each in their own DIV, phase in with their own "delay" and "fadeIn" values. I have it working in This Fiddle, but is this the most efficient way to go? In the live site, I will pass a random number via PHP for the delay and fadeIn values.
Here is the JQuery:
$(".fade1").hide(0).delay(500).fadeIn(500); $(".fade2").hide(0).delay(800).fadeIn(1750); $(".fade3").hide(0).delay(1000).fadeIn(3500); $(".fade4").hide(0).delay(1500).fadeIn(5000);
.fade_container. How about a loop that goes through the children of that? You can then bind.fadeInto each of those with an increasing interval on both.delayand.fadein