@correlucas
Posted
👾Hi Lakshan, congrats on completing this challenge!
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 sites 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
@M-lakshan
Posted
@correlucas, This was done a long time ago in my beginner coding days. I couldn't find a better solution in CSS to achieve that transparency. I'm truly thankful to u for pointing this out even though this was an old project. I'll refer to the provided materials more. wish u success 😄🥂