react-multi-carousel icon indicating copy to clipboard operation
react-multi-carousel copied to clipboard

Slider not showing without SSR for Mobile

Open pradipvadher opened this issue 4 years ago • 5 comments

I am trying to display some content on mobile but it shows nothing, not even dots. Working for desktop!

Here is my code,

<Carousel additionalTransfrom={0} arrows autoPlay autoPlaySpeed={3000} centerMode className="" containerClass="" dotListClass="" draggable focusOnSelect={false} infinite deviceType={isMobile ? "mobile" : "desktop"} itemClass="" keyBoardControl minimumTouchDrag={80} renderButtonGroupOutside={false} renderDotsOutside responsive={{ mobile: { breakpoint: { max: 464, min: 0, }, items: 3, }, }} showDots sliderClass="" slidesToSlide={3} swipeable > // Content here </Carousel>

pradipvadher avatar Aug 20 '20 08:08 pradipvadher

Not able to format the code, please edit if you can.

pradipvadher avatar Aug 20 '20 08:08 pradipvadher

@pradipvadher have you imported css?

import 'react-multi-carousel/lib/styles.css'; can you remove these props that you have passed (as i think they have no effect) className="" containerClass="" dotListClass=""

abhinavdalal avatar Aug 20 '20 08:08 abhinavdalal

yes i imported,

import Carousel from "react-multi-carousel"; import "react-multi-carousel/lib/styles.css";

pradipvadher avatar Aug 20 '20 09:08 pradipvadher

Should I have to add any special props? for mobile?

pradipvadher avatar Aug 20 '20 09:08 pradipvadher

Hello everybody, I have the same issue with react-multi-carousel, on mobile nothing is showing only at the first render, but I come back from another page the slider is not showing

VittorioMorellini avatar May 11 '23 14:05 VittorioMorellini