+ 1
Change color of png image
How can I change the png image color when the user hover it? Like social media icon in footer.
6 ответов
+ 2
Use filter selector on hover an image
https://code.sololearn.com/W4jk4wHAPJtB/?ref=app
+ 1
Calviղ verrrrrrrry good!
Tnx alot! 🙏🏻
0
I think what you want is to change color of an svg when hover over it.
PNG color can't be changed but it can be replaced with some other image when hovered over it.
img:hover{
content: url("path of image");
}
0
@Lakshay Mittal for example a have look this social media link in footer of this Web site. Something like it. Or it's color for example blue for twitter or red for youtube
http://www.bahacode.com/
0
They are actually changing background color of the element when hovered over it.
You must try fontawesome. It will satisfy your needs.
0
Lakshay Mittal tnx🙏🏻