-
-
Notifications
You must be signed in to change notification settings - Fork 189
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
Scroll one slide at a time #121
Comments
Hi Patrick (@patrickhuang94), Thank you for your question. Based on your description, I think you're looking for the As you can see, Embla treats every 2 slides as if it was a single slide behind the scenes. In order to achieve what you want, you'll have to do the following:
Take a look at this CodeSandbox I created for you and let me know if it helps. Best, |
@davidjerleke this is exactly what I was looking for. Thank you for the breakdown! |
You’re welcome @patrickhuang94. Enjoy! |
Hi David! Thank you for your work on
embla-carousel
, it's been a joy to use so far in my project :)Is it possible to move one slide at a time when
slidesToScroll
is set to 2 or more? This is what I'm asking for, visualized:Expected:
What's happening:
Sandbox: https://codesandbox.io/s/embla-carousel-default-react-forked-scfoz?file=/src/js/EmblaCarousel.js
The text was updated successfully, but these errors were encountered: