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

Hide the slides based on their count #264

Open
kiranch05 opened this issue Oct 13, 2023 · 1 comment
Open

Hide the slides based on their count #264

kiranch05 opened this issue Oct 13, 2023 · 1 comment

Comments

@kiranch05
Copy link

kiranch05 commented Oct 13, 2023

Hi Team,

I have 7 items in my carousel & I want to show with three dots.
In first dot, we have three items like below,
image

In Second dot, I want to show three items but don't duplicate the first slide items like below screenshot,
image

In third dot, I want to only one item and remaining two places will be empty & don't duplicate the items from before slides like below screenshots,
image

I need the responsive the design when I move from different resolutions. The main aim was don't duplicate the items when we from one dot to other dot.

Kindly help me to achieve the the procedure. I worked for more than two weeks & I didn't get any solution like above scenario.

Regards,
Kiran

@vitalii-andriiovskyi
Copy link
Owner

Hi @kiranch05

Maybe it's late.

You need to set options:

{
  loop: false,
  items: 3,
  slideBy: 'page'
}

This will allow to scroll by 3 slides or n slides where n=items set using responsive option

There's one issue here: the last page will show 5, 6, 7 slides not only 7th slide.
This is the basic behaviour of the library. To handle it, you can add 2 empty slides.

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

2 participants