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.29k stars 289 forks source link

Carousel breaking when I shrink it to Mobile view or when the width and height reaches below 576/608 #262

Closed AhmadSalihu closed 3 years ago

AhmadSalihu commented 3 years ago

this is the props am passing to it......

    <Carousel
additionalTransfrom={0}

arrows autoPlaySpeed={4000} autoPlay={true}
centerMode={false} className="" containerClass="container" dotListClass="" draggable focusOnSelect={false} infinite={true} itemClass="" keyBoardControl minimumTouchDrag={80} renderButtonGroupOutside={false} renderDotsOutside={false} responsive={{ desktop: { breakpoint: { max: 3000, min: 1024 }, items: 4, partialVisibilityGutter: 40 }, mobile: { breakpoint: { max: 1000, min: 770 }, items: 2, partialVisibilityGutter: 30

},
tablet: {
  breakpoint: {
    max: 1024,
    min: 464
  },
  items: 2,
  partialVisibilityGutter: 30
}

}} showDots={false} sliderClass="" slidesToSlide={2} swipeable

YIZHUANG commented 3 years ago

That breakpoint also needs to be added