@hitmorecode
Posted
For the overlay problem, this is how you can solve it
/* add these to your css */
picture {
position: relative;
}
picture::before {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: #aa5cdb;
mix-blend-mode: multiply;
opacity: 0.8; /* play with the opacity until you happy with the result */
}
Marked as helpful
@cacti00
Posted
Thanks a lot just tried it now and it’s working But quick question what’s the difference between mix-blend-mode and background-blend-mode. @hitmorecode
@hitmorecode
Posted
@cacti00 mix-blend-mode
blends between stacked HTML elements, so elements on overlapping layers will blend with those beneath it.
background-blend-mode
blends between the layers of a background-image declaration. This means that as background images stack on top of each other, you can apply a blending mode to mix them together.
Marked as helpful
@cacti00
Posted
Thanks @hitmorecode