kenwheeler / slick

the last carousel you'll ever need
kenwheeler.github.io/slick
MIT License
28.33k stars 5.88k forks source link

how to add or remove slide from specific index #4168

Open ghost opened 2 years ago

ghost commented 2 years ago

I'm making my slider to add or remove from specific index i don't know how to do it ,it might have been asked before but I couldn't find so if someone can just give code of it or something. thank you.

tszalbot commented 2 years ago

You can use "slickRemove", like this: $('.slider').slick('slickRemove', 0) Where 0 is the index of the slide, in this case it's the first slide