Jump to content

Colour Image removed on Hover

Go to solution Solved by tuanphan,

Recommended Posts

Hi,

I've seen this question in the forum in a few different places where people are asking for an image to have a colour overlay on hover, however I'm looking for the opposite.

I've attached an example of my design and the effect I'm after. I'd like these (staff photos) on one section of the website to have a colour overlay, which disappears on the hover.

(Website for ref: https://findnorth.uk/home)

Thanks in advance 🙂

image.png

Link to comment
  • Replies 6
  • Views 714
  • Created
  • Last Reply

Top Posters In This Topic

To sum up you want them all to be color and then on hover, over an individual image, to be not color? Also when hovered the decolored state should match the green background? Kind of like a sepia effect.

Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

Link to comment
9 hours ago, creedon said:

To sum up you want them all to be color and then on hover, over an individual image, to be not color? Also when hovered the decolored state should match the green background? Kind of like a sepia effect.

Yes exactly that 🙂 For reference the green/teal is #00AA9B

Link to comment
On 8/13/2024 at 3:15 PM, sarah_cowan said:

Yes exactly that 🙂 For reference the green/teal is #00AA9B

You can use this code to Website Tools > Custom CSS

section#home-who .image-block:hover img {
    content: url(https://images.squarespace-cdn.com/content/v1/65bcc6bcea405932b75c37f6/3a077276-77de-42df-9b4b-30e8e610f75c/Staff_Placeholder-11.png?format=500w);
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
3 hours ago, tuanphan said:

You can use this code to Website Tools > Custom CSS

section#home-who .image-block:hover img {
    content: url(https://images.squarespace-cdn.com/content/v1/65bcc6bcea405932b75c37f6/3a077276-77de-42df-9b4b-30e8e610f75c/Staff_Placeholder-11.png?format=500w);
}

 

Hi @tuanphan This works perfectly, thank you so much!!! 😄

These staff images are currently placeholders on the website while I wait for images from the client. I will be adding different staff photos for each thumbnail. I have updated these on the website to show you what I mean. Is there a code I can add so I can update the image URL for each image individually? Thank you!

image.thumb.png.4812eb50117a37b153f6ef3e959d5a00.png

Link to comment
  • Solution
On 8/15/2024 at 2:46 PM, sarah_cowan said:

Hi @tuanphan This works perfectly, thank you so much!!! 😄

These staff images are currently placeholders on the website while I wait for images from the client. I will be adding different staff photos for each thumbnail. I have updated these on the website to show you what I mean. Is there a code I can add so I can update the image URL for each image individually? Thank you!

image.thumb.png.4812eb50117a37b153f6ef3e959d5a00.png

Use some code like this

div#block-yui_3_17_2_1_1723214808527_50690:hover img {
    content: url(https://images.squarespace-cdn.com/content/v1/65bcc6bcea405932b75c37f6/3a077276-77de-42df-9b4b-30e8e610f75c/Staff_Placeholder-11.png?format=500w);
}

Just repeat the code but replace div#block....90 with Image Block ID. Each image will have an ID.

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
On 8/17/2024 at 9:33 AM, tuanphan said:

Use some code like this

div#block-yui_3_17_2_1_1723214808527_50690:hover img {
    content: url(https://images.squarespace-cdn.com/content/v1/65bcc6bcea405932b75c37f6/3a077276-77de-42df-9b4b-30e8e610f75c/Staff_Placeholder-11.png?format=500w);
}

Just repeat the code but replace div#block....90 with Image Block ID. Each image will have an ID.

 


Works perfectly! Thank you so much for your help again @tuanphan!

Link to comment

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.