Hi guys, I'm trying to create a looping circular carousel but I'm stuck on how to wrap the boxes to the other side when rotating the circle.
As you can see in the codepen, I've prepared an array with all possible positions around the circle on which the boxes should be placed.
Much like the horizontalLoop() helper function, the boxes should be moved to the end when they are rotated out of view.
While writing this I'm thinking of creating a tracker for the positions and index of the box placed on each position to update, is that the way to go?
Would greatly appreciate if someone could give me nudge in the right direction.
Many thanks, GSAP rocks!