Looking for a jQuery function that can apply different CSS attributes to children elements of a div.
<div class="container">
<div class="autogenerated-div"></div>
<div class="autogenerated-div"></div>
<div class="autogenerated-div"></div>
<div class="autogenerated-div"></div>
<div class="autogenerated-div"></div>
<div class="autogenerated-div"></div>
<div class="autogenerated-div"></div>
<div class="autogenerated-div"></div>
</div>
The divs within the container are automatically generated.
The children elements should have the following CSS attributes:
First child: animation-delay: 1s;
Second child: animation-delay: 2s;
Third child: animation-delay: 3s;
...
Attempted using nth-child selector in CSS without success, seeking a jQuery solution now.