Chloe24 Posted January 12, 2022 Share Posted January 12, 2022 Site URL: https://ideam.squarespace.com/about-ideam Hello, I'm trying to create a hover effect on poster images. The idea is that the black logos in the "our clients" section will be grey while inactive, and turn black when hovering. The original images are black, so I tried changing the opacity when inactive, but it did not work. Can you help? Thank you! Link to comment
tuanphan Posted January 13, 2022 Share Posted January 13, 2022 Try adding to Design > Custom CSS section#about-clients img { filter: grayscale(1); } section#about-clients .image-block:hover img { filter: grayscale(0); } Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
Chloe24 Posted January 13, 2022 Author Share Posted January 13, 2022 Thank you for your answer! It did not work, but I've added an "opacity" line to the code you sent and it worked: section#about-clients img { filter: grayscale(1); opacity: 0.5; } section#about-clients .image-block:hover img { filter: grayscale(0); opacity: 1; } tuanphan 1 Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment