Slick slider 2 slides in the center?

Hello! Please tell me how to do so in the slider instead of a single slide centered two?
for one, it looks like this:
 centerMode: true,
 //centres the current slide
 centerPadding: '50px',
 //slightly increase the current slide
 slidesToShow: 3
 //print 3 slides to view

to 2 red
June 3rd 19 at 19:25
1 answer
June 3rd 19 at 19:27
In slidesToShow can be set to a fractional value, you can try to put something like 2.65. You can try to combine on and off centerMode and value centerPadding, it will slightly change the sizes of slides.
Or as an option in one slide of slick stuff from two real slide in the center, but then the minimum number of slides on the screen will be 2.
Set a fractional value, was as it should be, but there was a problem, I have a slide width of 570px, when you change the screen resolution, everything begins to shift. What to do in this situation? For each screen size in jquery to change the value to up or what? - layla.Raynor commented on June 3rd 19 at 19:30
Well if the container in which lies the slider has multiple possible values then for each width option in the option "responsive" you can set desired values, if the container is always changing with the change of the width of the page then all cases to prescribe does not work, and the width will change because the slick calculates the width as a percentage width of the container. - Misael.Dach commented on June 3rd 19 at 19:33

Find more questions by tags HTMLCSSjQuery