-
-
Notifications
You must be signed in to change notification settings - Fork 768
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 multiple slides #408
Comments
I found this go(pattern) in the docs for the api. Maybe this could work for a custom solution? const glide = new Glide('.selector', {perView: 3}).mount();
const perView = glide.settings.perView;
for (i = 0; i < perView; i++) {
glide.go('>');
} Add that to a click listener on your glide control elements. I haven't tested it but it might be a good starting point. There is a feature request in #201 for the same functionality though. |
We decided to wait for the right feature rather than make something hackie haha! tks. |
Hi! I tried your code and it isn't work for me. In other things, it led me to another path that worked:
|
yeah, my code was more a proof of concept than an actual solution 😅 I'm glad someone else put the pieces together though! |
Hi guys, this is actually possible, but not documented. I had to dig into the code to figure it out: <div data-glide-el="controls" class="glide__arrows">
<button class="glide__arrow glide__arrow--prev" data-glide-dir="|<">
move perView slides backwards
</button>
<button class="glide__arrow glide__arrow--next" data-glide-dir="|>">
move perView slides forwards
</button>
</div> |
Judging from the test suite, it seems that there are actually 6 valid direction patterns:
|
They seem to only appear in the test-suite, and actually not being used (as far as I can see). From the source it seems like they're not implemented, unfortunately 😞 glide/src/components/direction.js Lines 5 to 9 in 30978df
|
No they're here. See: Line 97 in e02641f
Line 159 in e02641f
They've been introduced in PR #327 and the tests have been introduced in 7f508b5. They're also present in https://github.com/glidejs/glide/blob/master/dist/glide.js which is the version that I'm using. The only thing that could explain your error is that in https://github.com/glidejs/glide/releases, we can see that release So in short, use |
@xfra35 you're totally right! I rolled back to |
Would love if you guys continued to support this feature! I also rolled back from |
Great, thanks. But can we expect this feature in next releases? |
Is this still in the process of being fixed? |
Up :) |
Do we still use glide? Is this going to get fixed? |
Also rolled back to 3.4.0 |
Not sure if that helps but #201 (comment) looks like (if I'm not confusing stuff here) it has been released under v3.5.0 ? |
Hi all,
Is there any way to slide multiple slides?
I currently have 4 slides set in perView. When I hit next / prev arrow I would like to scroll 4 slides instead of just 1.
I did not find this options so far...
Thanks
The text was updated successfully, but these errors were encountered: