fading image on mouseover
-
Hello to all,
I have managed to change an image on mouse over using the code below (5 social icons change colour when moused over) But they change very quickly. I would like to know of a way so that one colour gradually fades into the other, so it looks more professional.
<i><center>
<img src=”https://www.mugeturner.com/wp-content/uploads/2014/08/Facebook-black-e1407951490164.png”onmouseover=”this.src=’https://www.mugeturner.com/wp-content/uploads/2014/08/Facebook-gold-e1408037119792.png'”onmouseout=”this.src=’https://www.mugeturner.com/wp-content/uploads/2014/08/Facebook-black-e1407951490164.png'” /> <img src=”https://www.mugeturner.com/wp-content/uploads/2014/08/Instagram-black-e1407951334149.png”onmouseover=”this.src=’https://www.mugeturner.com/wp-content/uploads/2014/08/Instagram-gold.png'”onmouseout=”this.src=’https://www.mugeturner.com/wp-content/uploads/2014/08/Instagram-black-e1407951334149.png'” /> <img src=”https://www.mugeturner.com/wp-content/uploads/2014/08/Twitter-black-e1407950590591.png”onmouseover=”this.src=’https://www.mugeturner.com/wp-content/uploads/2014/08/Twitter.png'”onmouseout=”this.src=’https://www.mugeturner.com/wp-content/uploads/2014/08/Twitter-black-e1407950590591.png'” /> <img src=”https://www.mugeturner.com/wp-content/uploads/2014/08/Pinterest-black-e1407951027900.png”onmouseover=”this.src=’https://www.mugeturner.com/wp-content/uploads/2014/08/Pinterest.png'”onmouseout=”this.src=’https://www.mugeturner.com/wp-content/uploads/2014/08/Pinterest-black-e1407951027900.png'” /> <img src=”https://www.mugeturner.com/wp-content/uploads/2014/08/LinkedIn-black-e1407951578193.png”onmouseover=”this.src=’https://www.mugeturner.com/wp-content/uploads/2014/08/Linked-in.png'”onmouseout=”this.src=’https://www.mugeturner.com/wp-content/uploads/2014/08/LinkedIn-black-e1407951578193.png'” /></i>The home icon on the menu does this already (but I dont know how they did it.
Please help if you can
Muge
- The topic ‘fading image on mouseover’ is closed to new replies.