Design comparison
SolutionDesign
Community feedback
- @AkoToSiJeromeEhPosted 6 months ago
Hey ! Great work out there i just want to share on how to achieve color overlay is you will use a css properties called mix-blend-mode and apply it on img element , also you need to apply bg-color in the img container . by doing and applying those properties you can now achieve the color overlay same as original design has happy coding !!.
.right { width: 100%; height: 100%; overflow: hidden; position: relative; background-color: hsl(277, 64%, 61%); // add this }
.right img { width: 100%; height: 100%; object-fit: cover; object-position: center; border-top-right-radius: 10px; border-bottom-right-radius: 10px; mix-blend-mode: multiply; // add this opacity: 0.7; // you can adjust this }
Marked as helpful0
Please log in to post a comment
Log in with GitHubJoin our Discord community
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