I hope this is not a "big ask" but I'm stuck. I asked this issue on github issues#1334 but I have not got any responsive from the maintainers of the project. Hopefully I can get help here.
Overview
My issue is that I'm trying to adjust the variable width slider (from react-slick
documentation) in order to be:
finite
responsive
(to different viewports) (if possible to display as many slides according to viewport width)scroll only 100% visible slides
slides should fill the
div
display area
Observations
So far, I have managed to make it:
finite
Regarding
responsive
, breakpoints don't work well forvariable width
slides.scroll only 100% visible slides
, This is very important when it comes to variable viewport width and when using variable width slides.slides should fill the
divdisplay area
, finite variable width slides when they reach the last slide, even though it was already visible by the previous scroll, the user can still scroll and what is visible is a huge area of blank slides, for example:
The Code
The issue can be replicated and tested in code sandbox
...
...
Any help is welcome.