Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Flexslider 1.8 go to item

Tags:

jquery

slider

I have a question for The Flexslider jQuery plugin, 1.8 version. How can I go to a slide manually? I searched and found a code, but it does not work properly.

$('.flexslider').slider.flexAnimate(2, true); 

I got the "$(".flexslider").flexAnimate is not a function" error

like image 535
Marcos Avatar asked Aug 17 '12 16:08

Marcos


1 Answers

You can go to the third slide like this:

var slider = $('#your-slider').data('flexslider');
slider.flexAnimate(2);

And this way too:

$('#your-slider').flexslider(2);
like image 55
zitix Avatar answered Nov 04 '22 15:11

zitix