@correlucas
Posted
Hello Azka, congratulations for your new solution!
Nice solution and nice design(where you get inspiration for this amazing design?)
Here's my tips to make the color overlay on the image, instead of using this lines of code:
.img-container::after {
content: "";
width: 100%;
height: 100%;
background: hsla(277, 63%, 30%, 0.699);
position: absolute;
top: 0;
right: 0;
border-radius: 15px 15px 0 0;
}
To make your hero image have the same look and the color purple overlay, you need to use mix-blend-mode
using the multiply
one.The mix-blend-mode CSS property sets how an element's content should blend with the content of the element's parent and the element's background.
Hereβs how you can add this to your img
selector:
img { mix-blend-mode: multiply; opacity: 84%;}
Here's a good article explaining these effects with mix-blend-mode: https://developer.mozilla.org/en-US/docs/Web/CSS/mix-blend-mode
βοΈ I hope this helps you and happy coding!
Marked as helpful
@Azkanorouzi
Posted
@correlucas from you Lucas, thank you for your amazing solution. π