Javier Villanueva
Javier Villanueva

Reputation: 4048

jquery cycle plugin don't cycle on next

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!

Upvotes: 1

Views: 213

Answers (1)

Bryan Downing
Bryan Downing

Reputation: 15472

There is a configuration option called nowrap. All you need to do is set nowrap: true in your configuration options.

Cycle Options

Upvotes: 2

Related Questions