Design comparison
Solution retrospective
Hello, did anyone else have a hard time finding the appropriate filter values for the image? Please I'd appreciate some feedback on how you got it
Community feedback
- @correlucasPosted over 2 years ago
Hello, congratulations for your solution!
Answering your question:
If you use the filter method to reach this color, you can play around with the saturation inside the filter to reach the color blue, see the code below:
.image-icon:hover .header-image { filter: invert(10%) sepia(100%) saturate(399%) hue-rotate(145deg) brightness(150%) contrast(100%); }
To reach the perfect match, try to use this tool to calculate the hover color using filter, its a css filter color calculator:
https://codepen.io/sosuke/pen/Pjoqqp
See if works
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