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 option to have less totalSlides than slidesToShow #65

Open
SHinterauer opened this issue Oct 11, 2023 · 1 comment
Open

[FEAT] Add option to have less totalSlides than slidesToShow #65

SHinterauer opened this issue Oct 11, 2023 · 1 comment

Comments

@SHinterauer
Copy link

The default behavior in case of less total slides than the number of slidesToShow in the config is, to set the slidesToShow to the total slides in the slider. This is implemented in the fixSliderConfig.ts file, line 13 to 20.
In some cases this behavior can lead to a problem, where the slides blow up in size dramatically. Therefore it would be nice to have an option to turn if off, so the slides keep there size even if there are less total slides than the slidesToShow number.

Possible config:
this.sliderConfig = {
all: {
slidesToShow: 3,
//with this parameter you could turn off the slidesToShow reset
keepInitalSlidesToShow: true
}
}

@jayswo
Copy link

jayswo commented Feb 6, 2024

Would need this as well! 🚀🚨
Please fix this :)

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