This interaction uses nested components to achieve the animation.
I've used a card container component that incorporates two card components, each with three variants. By simply connecting these variants with mouse enter and mouse leave interactions, this effect is easily achieved.