I'm currently working on a web comic application and as you read further into the comic you use the arrow keys (left and right) to show whichever the next panel is. What I'm looking to do is shift focus each time the arrows are used and initiate slight animations when elements are in focus for the first time on the page.
If elements that have already been in focus get focus again, the animations do not repeat.
I've got everything pretty much down I just need to loop through tabindex in order to shift focus correctly and I don't know how to do that. Very new to the StackOverflow community so I'm excited to hear some responses!