@correlucas
Posted
👾Hello @CortesJose, congratulations for your new solution!
🎯 Your solution its almost done and I’ve some tips to help you to improve it:
To do the same overlay effect as the design files, instead of using this:
.hero__layer {
background-color: hsl(277deg, 64%, 61%);
opacity: 0.4;
height: 100%;
width: 100%;
}
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