I have a button that I want to move randomly on hover. I want it to be able to move anywhere not pseudorandom, but truly random. The code I have only made the button go to the bottom right.
Also, if possible, if you could make an animation to make the animation smooth, that would be greatly appreciated.
document.addEventListener("mouseover", function (event) {
x = event.pageX;
y = event.pageY;
div.style.left = x + 35 + "px";
div.style.top = y + 35 + "px";
});