How can I make all the div elements in a container fade in one after each other without setting a delay for each div inside the container?
Here is my working jQuery code:
$("#a").animate({opacity: '1'});
$("#b").delay(100).animate({opacity: '1'});
$("#c").delay(200).animate({opacity: '1'});
$("#d").delay(300).animate({opacity: '1'});
$("#e").delay(400).animate({opacity: '1'});
Fiddle: http://jsfiddle.net/f9poom60/2/
Now if I want to add one more div, I have to add it with a delay in my JavaScript and I have to add it in CSS. I'm pretty sure it can be done in a more simple way.