开发者

jquery cycle plugin don't cycle on next

开发者 https://www.devze.com 2023-04-04 07:57 出处:网络
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

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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号