akiran / akiran/react-slick

centerMode and slidesToShow dont seem to work properly.

Đang mở
#2,064 0 bình luận 1 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
JavaScript
Star
11.9k
Fork
2.1k
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.