How can I create a 50% opacity black overlay on images with CSS?

Hello,

I’m trying to make a black color overlay with 50% opacity on each image on the Collection Lists page (https://home-hack.shop/collections) the password is “dowdri”. My knowledge is CSS is simply not good enough…

The desired result is all category images are with black overlay and no overlay onhover.

I would be grateful if someone can help.

Thanks

@eleibzon

yes, please try this code

  1. Go to Online Store->Theme->Edit code
  2. Asset->/theme.css ->paste below code at the bottom of the file.
.tt-promo-box .tt-description {
    background: rgba(0,0,0, 0.5);
}

This works perfect! Thank you!

May you please help with removing the overlay on hover?

@eleibzon

yes but your password doesn’t work now

Strange, it works for me (dowdri)

@eleibzon

yes, please update this code

.tt-promo-box .tt-description {
    background: rgba(0,0,0,.5);
    transition: all 0.9s;
}
.tt-description.normal:hover {
    background: transparent;
}

Thank you very much!

@eleibzon

its my pleasure to help us