Smart animate while hovering
Hello, community!
I have created a component containing different states for a menu item. I want to have a small rectangle on the left side of the item that stays visible when the page is active but most importantly to smart animate on hover over the other items in the menu. The animation is simple: the rectangle has a width of 0px when is not hovered and 10px width on hover. The problem is that whenever I hover over the item, the width of the rectangle is instantly 10px width and when I stop hovering, it is animating the width of the rectangle.
Thank you in advance for the possible answers!
