Ping Coming Soon Page using HTML, CSS, SCSS, JS (RWD)
Design comparison
Solution retrospective
Hello! I have problem with active state of social media icons on the bottom of the page. They should change their color with :hover. How can I do that? Thanks! :)
Community feedback
- @stfnpczkPosted over 2 years ago
Hey Paulina,
for the icons to change the color on hover, they need to be in a dynamic format like for example svg. As far I know, you can’t do that with jpg/png as they are static and you can’t access any color properties within
<img>
itself.So instead of the png format, you should get svg icons or import them from some icon library like Font Awesome and apply the respective color properties for it to change the color.
Marked as helpful1@testeriumPosted over 2 years ago@stfnpczk Hey, it's a valuable lesson for me. I didn't know that. Thank you!
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