How to make tabs have different animation style?

I have been working on this animation in tabs section, that one tab is selected it expands and changes the color as well the image on the right also changes, for the second the same thing is suppose to happen but when clicked on second tab, the first tab also expands with the first although both of them have different classes even i have duplicated the names of animation and assign different animations on both tabs.

How to solve this kindly help please


Here is my public share link: LINK
(how to access public share link)