Walush Posted October 12, 2023 Posted October 12, 2023 (edited) Hello! I choose to have a hovering animation for my portfolio categories so it could be more fun and dynamic, but the problem is that the color does not change once the image appears behind it. In some cases it's not bothering me, but in others the text just isn't readable. I tried to add a personalized CSS code, but I must admit that I'm not really a coder and nothing has worked yet. Is it possible to change the color of the text when it's hovering over the image? What would be the best for contrast would be a difference effect on the text, but I don't know if that's possible. Please let me know! Thank you ☺️ Edited October 12, 2023 by Walush
tuanphan Posted October 15, 2023 Posted October 15, 2023 Hi, What is site url? I think we can use line of code to change text color on hover 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!)
Walush Posted October 17, 2023 Author Posted October 17, 2023 On 10/15/2023 at 8:14 AM, tuanphan said: Hi, What is site url? I think we can use line of code to change text color on hover Hello @tuanphan! https://www.valentinfolliet.com/home , and the code is odak2023 Thank you!
Solution tuanphan Posted October 19, 2023 Solution Posted October 19, 2023 Try adding to Website Tools (under Not Linked) > Custom CSS a.portfolio-hover-item[data-active="true"] * { color: white !important; } 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!)
Walush Posted October 19, 2023 Author Posted October 19, 2023 (edited) 35 minutes ago, tuanphan said: Try adding to Website Tools (under Not Linked) > Custom CSS a.portfolio-hover-item[data-active="true"] * { color: white !important; } It worked, thank you so much! Though, I'm having another issue : when the text is longer than the photo, the part of the text which is not hovering appears white too, making it unreadable on the white background. Is there a possibility to code the text to interact only on the part on the photo? Now: And more something like this: Thank you!! Edited October 19, 2023 by Walush
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment