Jump to content

Image reveal on hover

Recommended Posts

Hi hi!!

Anyone has an idea how to make image appears when hover over a code block/ markdown block? I tried markdown block code that was suggested on here before and it doesn't work. 

I'm working on this site: https://transformersfoundation.org/annual-report-2024

What I'm looking for:
- When hover over the grey shape it changes colour.

My problem: 
- I can't use this code since the hover image is full size of the original image 😞

#block  {

opacity: 0;

transition: opacity 1s

}

#block:hover {

opacity: 1;

transition: opacity 1s

}

My question:
1. If there is a way to have a photo appears on hovering over a code block? 

2. If there is a smarter way of making the grey shapes change their colours on hover?

Thank you so much!

Link to comment
  • Replies 2
  • Views 202
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Do you want each grey shape to change colour independently?

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 
 🖼️ Gallery Lightbox Plugin (Referral link) 

 Did I help? Buy me a coffee?

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.