Apologies if the terminology in this question is not quite on point - I'm struggling to find the right words.
I've got a collection of circular divs styled with CSS, displayed in a row. When these circles are clicked from left to right, they animate by "popping up" - quickly enlarging and then shrinking back to their original size.
The animations work correctly, but the issue is that when one circle is animated, it causes the entire row of divs (circles) to shift along with it. I want the animation to make it appear as though the dots are all on a straight line (imagine a train track), enlarging and shrinking without moving the row.
I attempted to wrap all the dots in a single div wrapper, which did not solve the problem. I also experimented with adjusting the animation settings, specifically overflow
. How can I resolve this complication?
Check out the JSFiddle link here