akiran / akiran/react-slick

CenterMode : false is not working

Aperta
#2,352 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
JavaScript
Stelle
11.9k
Fork
2.1k
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

**This is my whole settings object ->**

```
var settings = {
centerMode: false,
variableWidth: false,
dots: false,
infinite: false,
wheel: true,
speed: 500,
slidesToShow: numSlidesToShow,
slidesToScroll: 1,
arrows: newsItems?.length > 4 ? true : false,
responsive: [
{
breakpoint: 1500,
settings: {
slidesToShow: 3,
}
},
{
breakpoint: 1300,
settings: {
slidesToShow: 3,

}
},
{
breakpoint: 1024,
settings: {
slidesToShow: 3,

}
},
{
breakpoint: 840,
settings: {
slidesToShow: 2.5,
slidesToScroll: 1.5,
}
},
{
breakpoint: 730,
settings: {
slidesToShow: 2.5,
slidesToScroll: 1.5,
}
},
{
breakpoint: 580,
settings: {
slidesToShow: 1.5,
slidesToScroll: 1.5
}
}
]
};

```
**This is my Slider component ->**

```
{ newsItems ?
{
newsItems?.map( ( item, index ) => {
return (

)
} )

}
: "" }
```

**OUTPUT --**

![image](https://github.com/solodev/slick-slider/assets/130832341/be0ccf0a-9e38-4199-9bcb-428986dc435a)

### Why is the item coming in center when I have set centerMode to false ?????

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.