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

Controlling item width (use-spring-carousel-item-wrapper) #26

Open
doublejosh opened this issue Apr 11, 2024 · 0 comments
Open

Controlling item width (use-spring-carousel-item-wrapper) #26

doublejosh opened this issue Apr 11, 2024 · 0 comments

Comments

@doublejosh
Copy link

To achieve more ambitious carousel initial layouts it's necessary to insert a dummy item and be able to size it.

This library forces all items to be the same width. Is there a way around that?

flex: `1 0 calc(100% / ${_itemsPerSlide} - ${
  (gutterRef.current * (_itemsPerSlide - 1)) / _itemsPerSlide
}px)`,
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