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

[feat] Add prop to remove white space #85

Closed
ismail9k opened this issue May 20, 2019 · 0 comments
Closed

[feat] Add prop to remove white space #85

ismail9k opened this issue May 20, 2019 · 0 comments
Labels

Comments

@ismail9k
Copy link
Contributor

Feature Description
Ability to prevent carousel from sliding when there will be an empty space instead of a slide item.

Addressed Issue
This issue happens when carousel itemsToShow > 1 and infinteScroll is set to false.
The carousel will keep sliding showing an empty space, before the next-slide button is disabled, as illustrated in the following figure.
normal-mode

Why New Feature?
We can set this to be the default behavior or the carousel, but adding this as prop will give more customizations, especially when set centerMode to true, maybe this will be the desired behavior; to leave empty space around the carousel slides.
Furthermore, the latest slides will never have the active mode, since the next-slide button will be disabled. This will affect the current carousel behavior you may be depending on.
center-mode

Suggested Solution
To disable the next-slide button when there are no more slides, and return the carousel to the ideal place when dragged slides further.
suggested-solution

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

No branches or pull requests

1 participant