React-slick: Setting fade = true displays only one slide

Created on 8 Apr 2017  路  5Comments  路  Source: akiran/react-slick

const settings = {
  fade: true,
  slidesToShow: 3,
  slidesToScroll: 3,
};
          <Slider {...settings}>
            {(() => {
              return (new Array(6).fill(null).map((item, i) => {
                return <h3>{i}</h3>;
              }));
            })()}
          </Slider>

slider fades but only displays the first slide, changing fade to false displays all 3.

JSFiddle demo

Most helpful comment

Refreshing this issue... This is a significant bug

All 5 comments

Refreshing this issue... This is a significant bug

Same bug. @jdmswong Can you fixed it? Thanks!!
I leave an example:
var settings = { dots: true, speed: 500, draggable: false, slidesToShow: 3, slidesToScroll: 3, arrows: true, swipe: false, fade: true }

Has anyone had any success finding a workaround for this?

Make sure you don't have two of the exact same carousel slides that have the exact same image, it fooled me and made me look into this problem resulting in landing on this page.

In case of fade=true, slidesToShow has been enforced to 1.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ramyatrouny picture ramyatrouny  路  3Comments

briziel picture briziel  路  3Comments

enriquelopez-atlas picture enriquelopez-atlas  路  3Comments

slashwhatever picture slashwhatever  路  3Comments

Exomnius picture Exomnius  路  3Comments