5

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

1 Answer 1

11

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);
1
  • Can you give a slide an ID and go directly to that slide by ID, in case the numbering of the slides changes later on?
    – Kris Hunt
    Feb 26, 2014 at 13:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.