Friday 15 February 2013

jQuery Cycle Plugin - stop at last slide -


I'm using the jquery cycle plugin to display a basic slider. I have 5 images.

The code is:

  $ (function () {$ ('# slider'). Cycle ();});   

But I want to show 5 images and at the end, stop animation and keep the last image displayed in it.

I mean, it should not repeat the sliders again

how to do this Do you? Weekly plugin takes autostop as an option parameter ... just pass in the specified parameter ... assuming there is the amount of 5 slides on which you want to stop ...

  $ (function () {$ ('# slider'). Cycle ({autostop: 5});});   

Plugins usually allow different options, and it is best to mention documents when trying to modify its settings.

You can see a list of all available options for this cycle. Plug in here ...



No comments:

Post a Comment