when I hover on the text I can not get the x and y from the background. so the circle is stopped and the movement is not smooth. I need to move the circle as I want and when hovering on the text, it will display.
here is the code
make "content" parent of all much better.
OR
d.addEventListener('mousemove',function(e){
if(e.target && e.target.classList.contains("moveable") ){
//moveable class of all elements
getCoOrdinates(e);
}
});
and then you need to take e of the "content" not the "text "