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
Posted

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!)

Posted
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!)

  • 4 weeks later...
Posted

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!

Posted
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!)

  • 3 months later...
Posted
On 7/17/2024 at 2:12 AM, musharna23 said:

Hi @tuanphan

Is there a way to alter the code so that the image disappears when not hovering? Currently whatever the last text hovered's image stays up

Can you share link to page where you use code? I can check easier.

Or you can follow this.

 

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!)

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.