Design comparison
Solution retrospective
Hello!
I´m a designer and video editor, still new to the IT world and last year I was studying web development.
This is my first challenge at Frontend Mentor. One of the problems I have was with the violet overlay. I think there is a better method to develop it because I am not completely satisfied.
Thank you very much for your time and your feedback!
Community feedback
- @Micpic3Posted over 2 years ago
In regards to the violet overlay:
-
The color is the same as the "accent" color defined in the style guide.
-
There is a css property called
mix-blend-mode
. Mozilla has a section about it here: https://developer.mozilla.org/en-US/docs/Web/CSS/mix-blend-mode. In particular, themultiply
option is most likely the one used for the challenge. The concept of blend modes is not unique to css. This is a resource I found helpful in understanding how some of them (includingmultiply
) actually work: https://photoblogstop.com/photoshop/photoshop-blend-modes-explained.
So with respect to your code, you'll need your
filter-img
div over theimg
(which is already happening). Then, usemix-blend-mode: multiply
in thefilter-img
div to multiply it with the image:.filter-img { mix-blend-mode: multiply; background-color: hsl(277, 64%, 61%); }
0@juanardanazPosted over 2 years agoHi @Micpic3, thank you very much for your comment and the information!
I will try that method!
0 -
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