Jump to content

Anyone Know How to Code Eyes That Track the Mouse?

Recommended Posts

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?


Link to comment
  • Replies 1
  • Views 277
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.