Reputation: 149
I have a flexslider thumnial like this ;
I want the slide to change when the user hover on thumbnails .How can I do so ?
This is the jquery code I'm using to create the slider:
$(window).load(function() {
$('.flexslider').flexslider({
animation: "slide",
controlNav: "thumbnails",
start: function (){
}
});
});
Thanks
Upvotes: 1
Views: 1149
Reputation: 1855
You can call thumbnail img
tag's click event inside the hover event handler using JQuery like this:
$(window).load(function() {
$('.flexslider').flexslider({
animation: "slide",
controlNav: "thumbnails",
start: function (){
}
});
$(".flex-control-thumbs li img").hover(function(){
$(this).click();
});
});
hope that helps.
Upvotes: 2