Image following my cursor on hover

Hello, I coded a script allowing you to have an image that follows the cursor on hover. And when I integrate the script on readymag I lose a lot of precision. How can I get my image to be on my cursor ? Here is my code and a picture of my problem. Thank you!

1 Like