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

Infinite disabled not working #168

Open
alexandrebouttier opened this issue Feb 9, 2021 · 0 comments
Open

Infinite disabled not working #168

alexandrebouttier opened this issue Feb 9, 2021 · 0 comments

Comments

@alexandrebouttier
Copy link

Hello I would like to deactivate the infinite option so as not to go back to the first element once the last element has been passed, but it does not work, someone has a solution ?

<AwesomeSlider infinite={false} selected={slideSelected} transitionDelay={0} className="awesome-slider" onTransitionStart={() => { console.log('start de transition'); setIsTransition(true); }} onTransitionEnd={e => { console.log('fin de transition'); setIsTransition(false); setSlideSelected(e.currentIndex); }} > <div><p>slide1</p> </div> <div><p>slide2</p> </div> <div><p>slide3</p> </div> </AwesomeSlider>

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

No branches or pull requests

1 participant