I want add a white layer over my active image like this
i tried with css filter property
filter:opacity(0.3);
but it looks like image is disable instead of active image
https://github.com/front-end-mentor-works/e-com-product-page/blob/main/e/active-white-layer.jpg
i have tried some other solutions also including
opacity:0.2
using psuedo class after with background from this stack overflow post link
but all these give a disabled appearance like above than active in the design tried box shadow solution from some other similar stack overflow questions
.lbcontent {
width: 80%;
border-radius: 8px;
border: 2px solid $Orange;
background: #fff;
}
.lbcontent-active {
box-shadow: inset 0 0 0 1000px rgba(0, 0, 0, 0.2);
}
.lbcontent img {
width: 100%;
border-radius: 2rem;
}
.lbcontent .cart-thumbnail-box {
display: flex;
width: 22%;
margin: 3rem 4rem 0;
gap: 22%;
}
<div class="light-box">
<div id="lboverlay"></div>
<div id="lbpopup">
<div class="lbcontrols">
<!-- <span id="lbclose">X</span> -->
<img id="lbclose" src="./images/icon-close.svg" alt="close icon" srcset="" />
</div>
<div class="lbcontent">
<img src="./images/image-product-1.jpg" alt="product1 light-box image" />
<div class="cart-thumbnail-box">
<img class="cart-thumbnail cart-thumbnail-active" src="./images/image-product-1-thumbnail.jpg" alt="product-1-image" />
<img class="cart-thumbnail" src="./images/image-product-2-thumbnail.jpg" alt="product-2-image" />
<img class="cart-thumbnail" src="./images/image-product-3-thumbnail.jpg" alt="product-3-image" />
<img class="cart-thumbnail" src="./images/image-product-4-thumbnail.jpg" alt="product-4-image" />
</div>
</div>
</div>