Jump to content

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

Recommended Posts

  • Replies 10
  • Views 1.1k
  • 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

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
  • 11 months later...
  • 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

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.