YIZHUANG / react-multi-carousel

A lightweight production-ready Carousel that rocks supports multiple items and server-side rendering with no dependency. Bundle size 2kb.
MIT License
1.25k stars 286 forks source link

Add custom style in the first and last visible item #351

Open sl1taz opened 2 years ago

sl1taz commented 2 years ago

I have this design:

Screen Shot 2022-06-16 at 02 04 02

### And this is my Carousel:

Screen Shot 2022-06-16 at 02 03 39

How can I apply a custom style in the first and last visible item like the desing?

I need to somehow observe the changes in the Carousel and find out what sets and changes the first and last items. But I've tried everything and I'm stuck on it

I'm getting the images in a map function, and I'm using React and TailwindCss.