Does anyone know how to create an image slideshow that only plays when a user hovers over the image? I found a demo that does everything I need except for the hover functionality.
Check out the demo here.
You can find the documentation here.
Here is the HTML code:
<div class="fadein">
<img src="http://farm3.static.flickr.com/2610/4148988872_990b6da667.jpg">
<img src="http://farm3.static.flickr.com/2597/4121218611_040cd7b3f2.jpg">
<img src="http://farm3.static.flickr.com/2531/4121218751_ac8bf49d5d.jpg">
</div>
And here is the jQuery code:
$(function(){
$('.fadein img:gt(0)').hide();
setInterval(function(){
$('.fadein :first-child').fadeOut()
.next('img').fadeIn()
.end().appendTo('.fadein');},
3000);
});
I'm also trying to figure out how to increase the speed of the slideshow. RUJordan suggested decreasing the interval from 3000 to 1000.