@aropsta
Posted
The purple color doesn't look as bright as the original design. You should use mix blend mode on your pseudo element like this
.image::before {
content: '';
position: absolute;
inset: 0;
background: var(--soft-violet);
width: 100%;
height: 100%;
mix-blend-mode: multiply;
}
The rest of the code can be found here. I haven't done the mobile site though :-) https://github.com/aropsta/card_data-analytics-statistics
Marked as helpful
@lionns
Posted
@aropsta Interesting. I didn't know that this property exist. I will apply since now in all my projects. Thank you for your feedback. 🚀
@aropsta you don't need all that pseudo content in the snippet you shared. Just the mix blend mode opacity and a background color will acheive the effect on the image fine. It should be background-blend-mode though not mix-blend-mode. That would be for when the image is in the html, not when it's a background image