nir9 / itemslide

JavaScript Touch Carousel Library with Zero Dependencies
https://itemslide.org
MIT License
647 stars 85 forks source link

Issues 41- loop feature #79

Closed jetelusmaximus closed 4 years ago

jetelusmaximus commented 6 years ago

Hello I would like to contribute with loop feature described in issue #41 Thanks for merge.

jetelusmaximus commented 6 years ago

Let me know please if it's ok :)

nir9 commented 5 years ago

Hi, changing the landing slide index when swiping beyond the end will make the sliding non continuous because when reaching the end and swiping further it will seem like there's no more and when letting go it will all the sudden jump to the first slide for example.

You need it to feel continuous - a way to implement this feature is to reposition the first slide to be after the last slide when arriving to the last slide and then when arriving to the first slide again repositioning the second slide to be after the first slide and so on.

Good luck!

PurHur commented 5 years ago

Note that the reposition concept is used widely in mostly all sliders.

nir9 commented 4 years ago

Closing due to no activity