I am currently designing a WordPress theme and I would like to create an effect where two different thumbnail images switch on hover.
The code that I have come up with so far looks something like this :
<a class="thumb" href="posturl"> <img src="img1.jpg" class="image1" /> <img src="img2.jpg" class="image2" /> </a>
Now, I need some CSS to implement the image switching between image1 and image2 on hover.
If anyone has suggestions on how to achieve a fade effect using JavaScript, I would greatly appreciate it.