I'm trying to fadeIn()
the children elements of a parent element using jQuery. The children elements are all of different types.
For example one of my parent elements may look like this:
<div class="section-content-parent">`
<span class="section-content-header">SPAN CONTENT</span>
<img src="#">
<span class="section-content-subheader">SUBHEADER CONTENT</span>
</div>
I would like for the <span>
and <img>
elements to fadeIn()
.
If possible in a sequence of one after the other, or all at once.
The children elements are going to vary and not always be specifically <span>
and <img>
elements so targeting specific element types is out of question.
I've tried:
$(document).ready(function(){
$(".section-content-parent").children().fadeIn(slow);
});
Nothing happens. Could someone lead me in the right direction?