Jump to content

Rollover Images Code

Recommended Posts

10 hours ago, spacecadetdigital said:

Hello Fellow Squarespacers,

 

Does anyone out there have code for an image rollover?! Ie like a greyscale to colour or even an image change!!

Thank you in advance!!

Regards, Angie 

Do you have any sample/ mockup to clarify your idea? Share it here so we may give the right approach

Press 👍  or mark my comment as solution if you find my sharing useful

🆒 Squarespace pinchzoom lightbox plugin (affiliate link)

👁‍🗨 360 degree photo viewer (affiliate link)

Link to comment

You can add an Image Block with colored image.

Next, use this tool to find Image Block ID

Suppose ID is: #block-yui_3_17_2_1_1711699792160_2223

You can use this code to Website Tools > Custom CSS to change current image to another image on hover

#block-yui_3_17_2_1_1711699792160_2223:hover img {
	content: url(https://content.invisioncic.com/p289038/monthly_2024_09/SkinBlkWhiteImage.png.a2cb6adc4f26609d18891e4de4759b29.png);
}

 

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

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.