@Kl3va
Posted
You will have to use css filters to do that. Also, work on the link pointing to weβre you hosted your code cause it currently throws 404 error code.
How to change color of that image???
@Kl3va
Posted
You will have to use css filters to do that. Also, work on the link pointing to weβre you hosted your code cause it currently throws 404 error code.
@melwynt
Posted
Hi π
Changing the color was definetely a challenge for me too.
To do this, your img
tag needs to be in a div
with the purple background color.
Meaning that the layer
behind your image needs to hold the purple color.
In the HTML, you would have:
<div class="stats-card__hero-img">
<img src="path/to/image" alt="">
</div>
And in your CSS file, you would:
div
.img
, you need to use mix-blend-mode: multiply
with 0.75
opacity.For more details, checkout my code here on Github.
And for more information on CSS blend modes, I found this article very helpful: getflywheel.com/layout/css-blend-modes/
Happy Sunday and happy coding!
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord