Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to loop the swiper #29

Open
Jacky9425 opened this issue Dec 19, 2018 · 9 comments
Open

How to loop the swiper #29

Jacky9425 opened this issue Dec 19, 2018 · 9 comments
Assignees

Comments

@Jacky9425
Copy link

For example, i have 3 items within the swiper, at reaching the third item, the swiper stops as default. I want to keep swiping back to the first item when it reaches the end (Right swipe will loop the swiper again rather than swiping left to return to previous items).

May i know is there any props supporting this feature?

@jackyleehong
Copy link

any update on this on how to loop the swiper?

@gusgard
Copy link
Owner

gusgard commented Jul 26, 2019

We are not supporting this feature yet

@gusgard gusgard closed this as completed Jul 26, 2019
@gusgard gusgard reopened this Jul 26, 2019
@brerdem
Copy link

brerdem commented Sep 3, 2019

I'm looking for this one too. This feature would be totally cool :)

@gusgard gusgard self-assigned this Dec 4, 2020
@getterhiss
Copy link

Hi, any plans on adding the loop option in?

@AlphaJuliettOmega
Copy link

@gusgard any reason the complexity reaches beyond

if(currentIndex >= items.length){
  nextIndex = 0;
}

To set it back to the first item?
I can imagine it possibly causing issues when the data list changes, but for a static / set only once list, looping shouldn't be an issue

except that the first item needs to 'display' after the last list item, which complicates it too
an initial implementation where it scrolls back quickly would be an improvement though

@alfredarcifa
Copy link

Hi,

we'll be waiting for this update.
Thanks.

@danferd33
Copy link

Would love to have this feature too.

@richard-grilla
Copy link

This feature would be awesome please!

@NikhilMasurkar
Copy link

is this supported in latest version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

10 participants