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

Duplicate Slides in FrontEnd #2059

Closed
britocris74 opened this issue Jul 12, 2021 · 1 comment
Closed

Duplicate Slides in FrontEnd #2059

britocris74 opened this issue Jul 12, 2021 · 1 comment

Comments

@britocris74
Copy link

Hi, I have this problem, I want to show maximun 3 slides in the same time, but the amount of cards that I recive for backend it's not constant, It can be 1, 2, 3 or more.. When the cards I recive it's menor than 3, its repeat the cards in front. I set "slidesToShow: 3", because I want the size of cards will be always the same, no matther the number of avaibles cards.

image
I recive 2 cards for backend, and this render a duplicate for this 2 cards, the same happends when I recive only one card.

image
This is what I really need.

Anyone have an idea to resolve this problem?

CodePen Example

@huybui-hubt
Copy link

@britocris74 you need set infinite: false.

var settings = {
      dots: true,
      slidesToShow: 2,
      slidesToScroll: 1,
      infinite: false
};

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