Amila Iddamalgoda
Amila Iddamalgoda

Reputation: 4296

How to stop slider to be cycled again in glide.js?

Once a slider has finished all slides how to stop the slider after the last slide. Disabling moving forward but enabling moving backward. http://glide.jedrzejchalubek.com/docs.html

Upvotes: 1

Views: 2351

Answers (2)

Reuben B
Reuben B

Reputation: 342

Is rewind:false the property you are looking for?

 glideOptions: {
  type: "slider",
  rewind: false,
  startAt: 0,
  perView: 5,
  
}

Upvotes: 0

Jędrzej Chałubek
Jędrzej Chałubek

Reputation: 1438

It's really simple, because it is buildin into plugin. You just need to set glide type to slider.

$('#Slider').glide({
    type: 'slider'
});

Upvotes: 3

Related Questions