Jump to content

How to create Product Title overlay / hover effect for product images

Recommended Posts

  • Replies 10
  • Created
  • Last Reply

Top Posters In This Topic

16 hours ago, bathtubgems said:

yes, here is the url https://lily-yellow-zwzc.squarespace.com/config/

And the password is 'bathtub'

Add to Design > Custom CSS

section.grid-meta-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    transform: translate(-50%,-50%);
    z-index: 9999;
    opacity: 0;
}
section.grid-meta-wrapper * {
    text-align: center !important;
}
figure.grid-image:after {
    content: "";
    background-color: rgba(255,255,255,0.9);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999;
    opacity: 0;
}
.grid-item:hover section.grid-meta-wrapper {
    opacity: 1;
}
.grid-item:hover figure:after {
    opacity: 1;
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment
  • 11 months later...
On 2/16/2023 at 8:24 PM, issyb_a said:

Is there some code to add so that the title only appears AFTER the hover, not before? TIA

What is site url? We can test code easier

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment
  • 1 month later...
On 3/23/2023 at 4:33 PM, Christe said:

I'm trying to use the code above and running into the same problem with the title always being visible. How would the code change so that the title only appears on hover? 

site: https://thisispidgintestsite.squarespace.com/

pw: Pidgin

Which section/page are you referring to?

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

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.