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

Slide width of slide even after resize or transforms #23

Open
Sirrine-Jonathan opened this issue Jul 14, 2023 · 0 comments
Open

Slide width of slide even after resize or transforms #23

Sirrine-Jonathan opened this issue Jul 14, 2023 · 0 comments

Comments

@Sirrine-Jonathan
Copy link

I'm needing to perform a css scale transform on the div wrapping the carousel. The amount by which the the wrapper is scales changes when it's container is resized. When the wrapper is scaled, the amount by which each nav event causes the slides to travel is no longer consistent with their width.

I've tried changing the slide type to 'fluid' rather than 'fixed' and passing the new width of the slides after scaling as the slideAmount prop available to 'fluid' types, but the same problem persisted.

I also tried programmatically dispatching a window resize event whenever the scale amount changes after looking in your code to find a solution.

Am I doing something incorrect or is this a case that is not accounted for currently?

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