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

Theme Panzari :: Opaque image when hovering on mobile

Question

Posted (edited)

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

Share this post


Link to post

1 answer to this question

Recommended Posts

  • 0

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


You can send your question to my email to get faster answer. / How to Setup Password & Share URL 

-- I'm Tuan. I work for a non-profit project (build free libraries). I check the forum once or twice a day to help out the community. If you don't see me answering your question, you can send it to the email above. There are so many questions every day so I can't answer them all at once, I will try to answer them in the next few days.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment


×
×
  • Create New...