The Orbit slider in Foundation 3 is infinite, meaning it cycles through its slides over and over.
Is there a way to get it to display all its slides only once, stopping on the last slide?
The Orbit slider in Foundation 3 is infinite, meaning it cycles through its slides over and over.
Is there a way to get it to display all its slides only once, stopping on the last slide?
There is a method provided (which is actually present in the docs @cuberoot referenced), here's the initialization code:
$(window).load(function(){
$("#featured").orbit({
singleCycle: true // cycles through orbit slides only once
});
});
I would register a function with afterSlideChange that checks if it is the last slide and then calls orbit.stopClock()