0

I am using a jquery plugin for testimonial. When i click next slider button it will stop auto sliding. How can i solve that??

here my js code

$('.testimonials-slider').bxSlider({
            slideWidth: 800,
            minSlides: 1,
            maxSlides: 1,
            slideMargin: 32,
            auto: true,
            autoControls: true
          });

here my external js

External Js

Live Demo

Dhanil
  • 442
  • 2
  • 6
  • 15

1 Answers1

1

Try this :

$(document).ready(function () {

        var slider = $('.testimonials-slider').bxSlider({
            slideWidth: 800,
            minSlides: 1,
            maxSlides: 1,
            slideMargin: 32,
            auto: true,
            autoControls: true
          });

   $('.bx-prev, .bx-next').click(function(e){
    slider.stopAuto();
    setTimeout(function(){
           slider.startAuto();
     },300);

    return false;
  });
});
Bhushan Kawadkar
  • 28,279
  • 5
  • 35
  • 57