akiran / akiran/react-slick

Change width of the center slide only

Offen
#2,370 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
JavaScript
Sterne
11.9k
Forks
2.1k
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

Currently I am trying to implement a carousel where the center slide widens to show more content. However at the moment it just doesn't seem to center properly. Here is a sample [https://codesandbox.io/p/sandbox/react-slick-center-whnkj5?file=%2Fsrc%2FApp.tsx](sandbox) of the issue.

Specifically I am trying to have my non-centered slides show a portrait image and once its centered it expands to show more content. Something like this:

![image](https://github.com/akiran/react-slick/assets/47728893/2c574fdb-b816-483f-adbd-158463553b9c)

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.