I need to move menu item underline like in this example.
With jQuery I would do it simply getting left position and width of a menu item. And then perform stop.animation
on hover.
I'm trying to do such animation with React
. But I can't figure out how to. After google research I found the popular react-motion library for animation. But I can't find the way how to trigger animation on hover.
My task is move blue underline on div
hover. Please help me to find the solution.