"Auto" setting for "slidesToShow"
See original GitHub issueSometimes the number of slides to show can’t be explicitly set - for example when showing a number of logos and you want the slide to fill up the width of the screen, whatever that might be.
I tried enabling variableWidth
, but that too seems to depend on slidesToShow
when infinite
is enabled as sometimes there is a blank space before the next X number of slides are displayed. I also have autoplay
enabled if that makes any difference.
Basically, if there was a setting auto
for slidesToShow
, then the slides should fill the width of the container and if infinite
is enabled then they should repeat seamlessly.
Issue Analytics
- State:
- Created 9 years ago
- Reactions:10
- Comments:20
Top Results From Across the Web
Setting slick slider slides to show - Stack Overflow
I want to create a slick slider. If slider has only 1 slide, show it as a full width image. If it has...
Read more >slick - the last carousel you'll ever need - Ken Wheeler
slick is a responsive carousel jQuery plugin that supports multiple breakpoints, CSS3 transitions, touch events/swiping & much more!
Read more >Slick Carousel Responsive slidesToShow Recipe
The slick carousel demos will get you most of the way there and provide examples for various settings. This post is an example...
Read more >https://www.aamu.edu/_resources/ldp/galleries/slic...
Unless `autoplay: true`, sets browser focus to current slide (or first of current slide set, if multiple `slidesToShow`) after slide change.
Read more >Responsive - React Slick Documentation
... "react-slick"; export default class Responsive extends Component { render() { var settings = { dots: true, infinite: false, speed: 500, slidesToShow: 4, ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hey @pavsid … sorry but this makes no sense;
If you don’t have enough slides to fill a carousel; then do your users a favour and don’t load the carousel from the server… waste of bandwidth and time… the point of a carousel is to display TOO many of something…
or you can and just duplicate your slides and piss people off even more?
Was this closed because this feature request was implemented? Otherwise it should be re-opened.
This would be a very useful feature. Honestly, I couldn’t care less how many slides appear at once. I simply want the carousel to operate as a content “overflow.” It makes no sense to constantly watch for container size changes and recreating the carousel over and over again. Also, what if the slides are variable-width? It should just resize smoothly as the container size changes, and let the container be responsible for the responsive breakpoints.