var windowWidth = $(window).width();

var obxSettings = {..};

slider.bxSlider(obxSettings);

$(window).resize(function() {

windowWidth = $(window).width();

if(windowWidth < 768) {

obxSettings.minSlides = 2;

slider.reloadSlider();

} else {

obxSettings.minSlides = 3;

slider.reloadSlider();

}

}

);

1 Answers

You can also use destroyShow() function to stop current bxslider functionality.

destroyShow function call same as reloadshow function for implement new duplicate bxslider but before new bxslider function.

var slider =  $('#bxslider').bxSlider( { ... } );
slider.reloadShow(); 

// or slider.destroyShow(); $('#bxslider').bxSlider( { ... } );

 

 

Please login or Register to submit your answer
Not the answer you are looking for? Browse other questions tagged or ask your own question.