I would like to implement a feature where class names on div elements shift after a brief delay, perhaps 10 seconds.
My goal is for the 3 classes listed below to cycle through the div elements and start over once it reaches the last one.
For instance:
<div class="wrapper">
<div></div>
<div></div>
<div class="previous-one"></div>
<div class="in-focus"></div>
<div class="next-one"></div>
<div></div>
<div></div>
</div>
would become:
<div class="wrapper">
<div></div>
<div></div>
<div></div>
<div class="previous-one"></div>
<div class="in-focus"></div>
<div class="next-one"></div>
<div></div>
</div>
I hope this explanation is clear. This is my first post here, so let's kick things off with a challenge!
Thank you in advance for any feedback or suggestions.