Stats preview card component

Please log in to post a comment
Log in with GitHubCommunity feedback
- @AkoToSiJeromeEh
Hi! Great work out there! I just wanted to share how you can achieve an image color overlay (as the original design contain) using mix-blend-mode: multiply or background-blend-mode: multiply. Since you are not using the image as background i recommend to use the mix-blend-mode:multiply and add a background color on the left container , (the bold text is code i modify in your source code) hope this suggestion helps and works . happy coding
.left-content { flex: 1; background-color: hsl(276.9, 63.8%, 61%); add this }
.stats-image { display: block; width: 100%; height: 100%; mix-blend-mode: multiply; add this opacity: 0.7; you can adjust this }
Marked as helpful
Join 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