loading code fetching the highlighted snippet
Pass an object directly to whileHover / whileTap. Right for one-off interactions — the animation is co-located with the element that uses it.
Name the state on variants, reference it by string from any gesture prop. The same "hovered" key drives whileHover, and could just as easily drive whileFocus, whileDrag, or whileInView.
variants; any gesture prop on the same element
(or its descendants) can pull from the same map by key.whileHover, whileTap, whileFocus, whileDrag, and whileInView. Pass
a single string or an array of keys (later entries override earlier ones).