You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I wanted to create simple transition based on "Underline" example from framermotion docs, it supposed to display background color on button
Here's what i did: https://codesandbox.io/p/sandbox/musing-stallman-8c79qv?file=%2Fcomponents%2Fmenu.tsx%3A9%2C49-10%2C1
It doesn't work on first hover, but if i will keep move my mouse over these two button, it will animate properly.
It works properly without onMouseLeave, however it leaves always hovered element, which i don't want.
How can it be done?
Beta Was this translation helpful? Give feedback.
All reactions