Hey, thanks for the reply. I tried solving this problem.
There are some problems I'm facing.
1. As you said stack all the elements on to top of each other and show hide elements. What I did is to create a function named shuffleCircle. Created a timeline for showing or hiding the elements. I have to repeat the animation infinitely so I have called the same function once the animation is completed with onComplete property.
But, I need gap between individual function calls. How to create a gap between the animation once a timeline is succefully completed.
Codepen URL: https://codepen.io/manish1269/pen/vYvzXxp?editors=0010