FormidableLabs / FormidableLabs/react-swipeable

How to change the width of each slide ?

Open
#337 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
2.1k
Forks
149
PR merge metrics
No merged PRs in 30d

Description

Hi,

I am trying to use this demo [https://codesandbox.io/s/react-swipeable-image-carousel-hben8](url) 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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.