I have an element and want it when the user hover over it, it should go to the position of another element.
For example:
I have the element A
and I have the element B
, when the user moves the mouse in the A
element, I need to move (slide, move) the A
element to the position of the B
element. >
The problem is that the A
element is using position: absolute
referring to div
with position: relative
. And the B
element is using position: absolute
referring to another div
.
Does anyone know how I can do this?