@hitmorecode
Posted
If you apply these changes it will work, you will see the overlay on the image.
img{
width:100%;
height:100%;
/* these two line were the problem, you can remove them. I just commented them out */
/* object-fit: cover;
position: relative; */
}
.right {
position: relative;
}
.right::after{
position: absolute;
content: '';
background-color: var(--soft-violet);
mix-blend-mode: multiply; /* add this line */
opacity: 0.8; /* add this line */
top: 0;
left: 0;
height: 100%;
width: 100%;
}
Marked as helpful
@Et18n
Posted
@hitmorecode thank you so much for this.
Could you tell me how does this work? Does it apply to the parent class instead of the image?