question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"Auto" setting for "slidesToShow"

See original GitHub issue

Sometimes 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:closed
  • Created 9 years ago
  • Reactions:10
  • Comments:20

github_iconTop GitHub Comments

40reactions
simeydotmecommented, Feb 25, 2015

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?

38reactions
hackelcommented, Aug 11, 2017

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found