Jump to content

Image/Text box hover with link

Recommended Posts

Hi there,

I am trying to create a custom hover effect on an image with the text block on top that links to another page. I do not want the link to be just on the text - I want the link to cover the whole text block so that you can click anywhere on the image. I'm trying to achieve the effect I have got on for my "Design" page which was done in already built in template.

The section I would like your help is located above the "Set Menu" at https://www.anjucreative.com/services 

The custom code I used to create the hover effect:

@media only screen and (min-width: 0px){
#block-yui_3_17_2_1_1679917918345_6347 {
opacity: 0;
 transition: opacity 1s
}

#block-yui_3_17_2_1_1679917918345_6347:hover {
opacity: 1;
transition: opacity 1s
}
}

 

Is there another code that follows after to insert the link in the block?

 

Thanks in advance!

Screen Shot 2023-03-28 at 6.49.51 pm.png

Screen Shot 2023-03-28 at 9.24.11 pm.png

Screen Shot 2023-03-28 at 9.24.32 pm.png

Link to comment
  • Replies 1
  • Views 304
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

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.