Jump to content

Hover over text to reveal a thumbnail image

Recommended Posts

  • ABCDEFGHUMAN changed the title to Hover over text to reveal a thumbnail image

Each case will require a different code.

My idea is: Add an Image Block behind Text, use CSS code to hide it on initial, when users hover on text >> add a code to make image appear.

So you can try add Image Blocks for these text, I will check & give the code, if the code works, I will send a quick guide, so you can apply it for other text/images

image.thumb.png.08b0ad44078cf2976a6b020871831c9c.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
On 2/26/2024 at 5:42 PM, ABCDEFGHUMAN said:

Step 1. I guess, so I hide image with this @tuanphan ?

#block ID {
display: none;
}

Step 2. how do I make the image appear on hover?

It will require some steps and each case require a different code, so I wrote this guide for you.

In case you can't make it work, you can follow all steps then share link to page where you added text/images, I can check & adjust your code easier

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
  • 4 weeks later...

Hi @tuanphan - thanks for writing this guide. Trying it now - does it necessarily mean that I have to upgrade to the higher-level Business plan in order to be able to inject the code into the footer ('Code injection") vs. CSS? Thanks in advance!

Link to comment
On 4/3/2024 at 11:04 AM, zyhsu said:

Hi @tuanphan - thanks for writing this guide. Trying it now - does it necessarily mean that I have to upgrade to the higher-level Business plan in order to be able to inject the code into the footer ('Code injection") vs. CSS? Thanks in advance!

If you don't want to upgrade, you can add script code to Markdown Block

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.