@jengori
Posted
I also struggled with the color filter on the image when I completed this challenge. In the end, I used the CSS property mix-blend-mode on the image, and set the background color of the div that the image is contained in to the color that I wanted for the filter. So something like:
.image-div { background-color: hsl(277, 64%, 61%); }
.image { mix-blend-mode: multiply; }
Marked as helpful
@Nebil-Nej
Posted
@jengori mix-blend-mode, i never heard of it. this actually works well? i would like to try, can it be done?
@jengori
Posted
@Nebil-Nej Actually the closest that I can get to the original design is by using both mix-blend-mode and opacity together, i.e.
image { mix-blend-mode: multiply; opacity: 70%; }