My issue was slightly different, but this may help someone.
I was working with a boxslider. Lets say I have had four slides automatically rotating on the carousel. The code that I started with was set to start at the 1st slide, and stop at the last. I wanted it to continuously rotate or perform an "infiniteloop". When I set the infinite loop to true in jquery.bxslider.js, the slider would display slides 1 and 2, and when it got to 3, it would zip through it and display slide 1, then 4, and then it would start over again. This of course causes an issue for content that I want to display on slide 3. My code is below, and what I did to fix it.
<script src="common/js/jquery.bxslider.js"></script>
<link href="common/css/jquery.bxslider.css" rel="stylesheet" />
<script type="text/javascript">
$(document).ready(function(){
$('.slider1').bxSlider({
mode: 'horizontal',
slideWidth: 940,
minSlides: 1,
maxSlides: 9,
slideMargin: 20,
controls: true
});
});
</script>
<div id="carousel">
<div class="slider1">
<div class="slide">[STUFFHERE]</div>
<div class="slide">[STUFFHERE]</div>
<div class="slide">[STUFFHERE]</div>
<div class="slide">[STUFFHERE]</div>
</div>
</div>
Changing the settings in jquery.bxslider.js so that infinite loop is true
// GENERAL
mode: 'horizontal',
slideSelector: '',
infiniteLoop: true,
hideControlOnEnd: false,
speed: 500,
easing: 'ease',
slideMargin: 0,
startSlide: 0,
randomStart: false,
captions: false,
ticker: false,
tickerHover: false,
adaptiveHeight: false,
adaptiveHeightSpeed: 500,
video: false,
useCSS: true,
preloadImages: 'all',
responsive: true,
What I had to do to fix it was change the min/maxslides values. Whatever they default values were, they were not allowing the infiniteloop setting to work properly. It may take some some experimenting depending on your own requirements for the slider, but this is what worked for my problem.
$(document).ready(function(){
$('.slider1').bxSlider({
mode: 'horizontal',
slideWidth: 940,
minSlides: <!--from 1--> to 0,
maxSlides: <!--from 9--> to 1,
slideMargin: 20,
controls: true