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

dragdealer infinity slides #128

Open
ltosetti opened this issue Jul 19, 2018 · 5 comments
Open

dragdealer infinity slides #128

ltosetti opened this issue Jul 19, 2018 · 5 comments

Comments

@ltosetti
Copy link

Hi Skidding

There is an easy way to make an infinity loop sliding of the slides?
I mean.. when you swipe the last slide, i would like to continue to swipe right to the first one, ecc..

Thanks a lot
Luca

@catalinmiron
Copy link
Contributor

But isn't this out "dragging" scope? As @skidding mentioned on the website:

Dragdealer is just a drag component, the rest is up to you.

I think that you can create your own slider using dragdealer and implement the logic for infinite loop. The slider example is just to showcase dragdealer capabilities :)

@ltosetti
Copy link
Author

Hi catalinmiron

On my opinion is a required feature of sliding/swiping/gallery plugin.
I think also that is the only things missed in the script.
thanks :)

@catalinmiron
Copy link
Contributor

@ltosetti the problem is that dragdealer is just a dragging library without external dependencies. @skidding created some example as inspiration (https://github.com/skidding/dragdealer/tree/master/examples) but here we're talking about an implementation detail that you'd like to include into the library. We can wait for @skidding's opinion on this one.

btw: Thanks for using this library! 👍

@ltosetti
Copy link
Author

Thanks to you @catalinmiron
I know what you mean, infact I build some stuff for dragdealer library by my own , like a pager, dot navigation, arrow navigation ecc..
The only thing missing (and not so easy to do) is infinity slides :)
btw: consider my request like a kind of suggest, if is possible and you are interested ok, otherwise i will find a way to do that.
Thanks a lot :)

@ovidiuch
Copy link
Owner

I can't think of an easy way to create an infinite slider using Dragdealer. You'd have to break your slider into pieces to achieve that, continuously repositioning each piece from one side to the other as it exits the viewport. Dragdealer doesn't cover this type of functionality but I'm sure you'll find other libraries that do.

Btw, I also published an infinite carousel thingy a while ago https://github.com/skidding/simple-carousel, but as the README suggests

You'd probably be better of with something else, unless you want to experiment.

Good luck!

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

3 participants