-
…in reply to @chriscoyier
chriscoyier Going to go with a classList approach and finding the index to increment/module back to 0: codepen.io/chriskirknielsen/pen/VwMVvZV Bonus: If it finds none, index of
-1
gets set to0
and it starts cycling anyway.