Anyone Know How to Code Eyes That Track the Mouse? in Customize with code Posted May 1, 2022 So basically I am creating a portfolio website. I have a big PNG image of my head with the eyes cut out and want to put eyes (similar to this: https://www.howtocodeschool.com/2021/10/demo-mouse-following-eyes-using-css-and-javascript.html) behind my head so it looks like my eyes are following the mouse. I've tried copying their code but it doesn't work on Squarespace. I get the graphic, but not the movement. Anyone able to help with this? Thanks!
Anyone Know How to Code Eyes That Track the Mouse?
in Customize with code
Posted
So basically I am creating a portfolio website. I have a big PNG image of my head with the eyes cut out and want to put eyes (similar to this: https://www.howtocodeschool.com/2021/10/demo-mouse-following-eyes-using-css-and-javascript.html) behind my head so it looks like my eyes are following the mouse.
I've tried copying their code but it doesn't work on Squarespace. I get the graphic, but not the movement. Anyone able to help with this?
Thanks!