i want to hover image on another image ?


#1

i want to hover image on another image ?
like i have black facebook icon when i want to hover on it
i want to switch the color to blue how i can do this ? note( facebook icon is circle)


dich vu giup viec nha uy tín giúp việc nhà giá rẻ


#2

You simply add an onEvent method and once the method is called it will change the src of the image to another one or it will add a css class that will change the background image on mouse over image.

Please read about react events and how to call methods based on different events, for example onMouseOver:

:wink:


#3

If you are looking for a non-React solution, this will help: https://www.kirupa.com/html5/preloading_images.htm :grinning: