akiran / react-slick

React carousel component
http://react-slick.neostack.com/
MIT License
11.72k stars 2.1k forks source link

SlidesToShow and fade:true #1763

Open DenysPavlenko opened 4 years ago

DenysPavlenko commented 4 years ago

There is an issue with fade property. When fade is true, slidesToShow doesn't work properly, it always shows only 1 row. Try to remove fade property: https://codesandbox.io/s/react-slick-fade-bug-44vu9?file=/index.js

gautamz07 commented 4 years ago

@DenysPavlenko i believe this is the desired behaviour as if you see the console , you will see an error like so:

console.warn(
    `slidesToShow should be equal to 1 when fade is true, you're using ${settings.slidesToShow}`
);