Zurb Foundation Orbit Slider - Infinite?

The Orbit slider in Foundation 3 is infinite, which means it cycles through its slides over and over again.

Is there a way to make it show all slides only once, stopping on the last slide?

+3


source to share


2 answers


There is a provided method (which is actually in the dc @cuberoot documentation), here's the initialization code:



$(window).load(function(){
    $("#featured").orbit({
       singleCycle: true // cycles through orbit slides only once
    });
});

      

+1


source


I would register a function with afterSlideChange that checks if it is the last slide and then calls orbit.stopClock ()



0


source







All Articles