Seeking guidance as a jQuery beginner. I am looking to create 5 classes (.button1 - .button5) with a timer that alternates the hover or active state of the next class every 4000ms in a continuous loop. Additionally, I would like the timer to pause and resume if the user hovers over another one of the classes. Any suggestions on where to start or any threads with a similar solution would be appreciated. Diagram attached.
CSS
.wrapper { width:100%; margin:0 auto; background:#f3f3f3; }
#buttonblock { display:block; }
.button1, .button2, .button3, .button4, .button5 { display:inline-block; margin:0 5px; height:50px; width:50px; border-radius:25px; background:#3cc8dd; }
.button1:hover, .button2:hover, .button3:hover, .button4:hover, .button5:hover{ background:#fbc040; }
HTML
<div class="wrapper">
<div id="buttonblock">
<div class="button1"></div>
<div class="button2"></div>
<div class="button3"></div>
<div class="button4"></div>
<div class="button5"></div>
</div>
</div>