Jump to content

Adding a link to an image with revealing text on hover

Recommended Posts

  • Replies 1
  • Views 264
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

Hi,

You can add an Image Block - Inline

image.png.4d9ceb10a6cc3b6afbc2c0597365517a.png

image.thumb.png.210e9211ff60eb0d0b6972e341a9178b.png

Next, add some caption

image.thumb.png.f07049baa67c940e3bf25a38aa5dd29b.png

Next, add this to Design > Custom CSS

figcaption.image-caption-wrapper {
    visibility: hidden !important;
    transition: all 0.3s ease;
  pointer-events: none;
}
.design-layout-inline:hover figcaption.image-caption-wrapper {
    visibility: visible !important;
    max-height: 100% !important;
    height: 100% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

 

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.