Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to change the width of each slide ? #337

Open
elvashen-lv opened this issue Nov 28, 2023 · 0 comments
Open

How to change the width of each slide ? #337

elvashen-lv opened this issue Nov 28, 2023 · 0 comments

Comments

@elvashen-lv
Copy link

Hi,

I am trying to use this demo https://codesandbox.io/s/react-swipeable-image-carousel-hben8 in my project, but I need to reduce the width of each slide. I tried to set the width, but this made the space between each slide larger. I also tried to add the condition if (!props.sliding) return "none" at the component.tsx, this reduced the space but made the swipe effect not smooth.

Could you please tell me the way to change the width of the slide without making the space between each slide larger?

Thank you.

Regards,
Elva

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant