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 can I create Infinite Slider ? #520

Open
ProPhycient5 opened this issue Dec 22, 2022 · 0 comments
Open

How can I create Infinite Slider ? #520

ProPhycient5 opened this issue Dec 22, 2022 · 0 comments

Comments

@ProPhycient5
Copy link

The above gif is the actual infinite slider component. I want to build this in ReactJS without manipulating DOM(without using prepend and append methods). I want to implement this by using transform CSS property with value as translateX(domWidth). I am able to slide each card in right and left directions, if any element is present in the right and left directions respectively.

However, I cannot translate smoothly (as shown in the GIF) to first card when I am at last card and click right arrow. Similarly, when I am about to translate to last card when I am at first and click left arrow.

How can I handle this extreme situation and create alike like attached?

Are you guys planning to build such a dynamic component ?
infinite_slider

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