Jump to content

Text color changing only on the part hovering the image

Recommended Posts

Hello! 

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:

Capturedecran2023-10-19a12_52_11.thumb.png.6330e21a132071257950ca6dd55638a6.png

And I would like something more like this:

Capturedecran2023-10-19a12_52.11copie.thumb.jpg.10f13b6b22b34ddb0aeb62f15a873ab8.jpg

 

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.