Jump to content

Caption Overlay on Hover—Change opacity?

Recommended Posts

Site URL: https://www.51eggs.com

Hello,

I have a series of images with Caption Overlay on Hover on my home page, which I've managed to change the size of the overlay (previously covered 1/4 the lower portion of the image on hover) to cover the full width of the image, using the .image-caption selector. I would like to lighten up the built-in overlay a bit, but am having trouble targeting it. Adjusting the opacity of .image-caption works, but it makes the captions within the overlay semi-transparent as well. Any suggestions? Thank you!

Link to comment
  • Replies 4
  • Views 890
  • Created
  • Last Reply

Top Posters In This Topic

  • 4 weeks later...
On 10/6/2021 at 2:00 AM, Deuter said:

Not disable it entirely, just turn down the opacity of the overlay a little bit. It's a bit too dark.

Add this to Design > Custom CSS. 0.25 is opacity

.image-block-outer-wrapper:not(.image-block-v2).layout-caption-overlay-hover .image-caption-wrapper {
    background: rgba(0,0,0,0.25) !important;
}

 

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.