Jump to content

Text color changing only on the part hovering the image

Recommended Posts


I asked a little while ago if it was possible to change the text color when hovering over an image for better visibility and @tuanphan helped me solved it!

Though, I'm having another issue : when the text is longer than the photo, the part of the text which is not hovering appears white too, making it unreadable on the white background. Is there a possibility to code the text to interact only on the part on the photo? Or give the text a sort of exclusion/difference effect?

This is the current version:


And I would like something more like this:



Thank you!!

Edited by Walush
Link to comment
  • Replies 2
  • Views 1.2k
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

  • Walush changed the title to Text color changing only on the part hovering the image

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.