I need help with my button animations

Disclaimer on my home menu scroll down to the second section it is a copy of the first section except the links are inactive so you can see the animation instead of being transferred to the next page.
I am trying to have the buttons that were not selected move to the right. I have been successful with that the only thing is if the user selects a different button instead of deselecting the initial button it ruins the formation of the buttons play around with it and you will see what I am talking about. Please inform me of any solutions. (please note only the ‘shop’ button and ‘patch cache’ button have interactions the remaining three buttons are inactive)


Here is my public share link: [LINK] (https://www.traphardest.com/)
(how to access public share link) Webflow - Trap Hardest