Any way to make jQuery loop not closed when you reach the end or the beginning?

I understand that the plugin is called CYCLE because it cycles through the list item. But what I like most is its flexibility, so I was wondering if there is a way to make the plugin not a loop. Therefore, if you try to go to the previous slide, when on the first, or on the next slide, when on the last, it just stops.

I read options and code, but could not find a solution

+5
source share
2 answers

: http://slidesjs.com/

y() slides.js . , 4...

animationComplete: function(current){ 
    if(current == 4) { 
      y();  
    } else {    
      /* default animate slide code */
    };                       
},
0

All Articles