Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search

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
  • 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.

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...