I开发者_运维技巧'm using the cycle plugin for an image slider with two links (next and prev) to cycle through them and so far it works just fine, I was wondering it it was possible to make it so when you hit the last image it doesn't cycle back to the first image, in this case I just want it to do nothing, I've been looking at the options but I can't find if there's any that let's you toggle this functionality.
Thanks in advance!
There is a configuration option called nowrap
. All you need to do is set nowrap: true
in your configuration options.
Cycle Options
精彩评论