akiran / akiran/react-slick

centerMode and slidesToShow dont seem to work properly.

Aperta
#2,064 0 commenti 1 reazione 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

What I want to achieve is have 2 slides to show with centerMode:true and centerPadding: 10%. But i want my active/centered slides to have a different height. I 've looked around and saw some examples where people achieved it with css. Now when inspecting the html on the browser during center more only the last of the focused items seems to receive the appropriate slick-centered class.

Example sandbox from the playground one: https://codesandbox.io/s/react-slick-playground-forked-6lfs1?file=/index.js

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.