Jump to content

Theme Panzari :: Opaque image when hovering on mobile

Recommended Posts

Site URL: https://howtopullitoff.com/

Hi all,

I need to have the mobile version of this theme turn the image opaque so the title will be more readable. I have the code to make the text permanent on the mobile version but it can't be read because the image behind it is not opaque.

Below is a screenshot of what it should look like on the mobile version (the screenshot attached is of the mobile preview on the desktop when hovered over). This is the code I found to make the text permanent. I played with it a bit but can't find a way to make the whole image opaque. TIA!!

@media screen and (max-width:640px) {
.portfolio-text {
    opacity: 1 !important;
}
}

 

 

This is the current setup where the text is not readable on the mobile version:

IMG_AA8796652881-1.thumb.jpeg.236d8bd9b5a4a84a3a5b371c9c72d92e.jpeg

 

 

This is the desired effect:

738281780_ScreenShot2020-05-16at9_53_46PM.thumb.png.ea1cceba074dfda0df7aad973fe89270.png


 

Screen Shot 2020-05-16 at 9.09.25 PM.png

Edited by IsabellaIanni
Link to comment
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

Add to Home > Design > Custom CSS

@media screen and (max-width:767px) {
a.grid-item .grid-image:after {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.4);
}
}

you can change background overlay opacity (0.4) it is from 0 to 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

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.