Hello. My task is to move an element to mouse click coordinates.
Those. the user clicks and the element (div, for example) moves there.
As far as I understand, I need to interact with the coordinates of the click and the coordinates of the element.
Please, tell me the algorithm or the solution to this problem.