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
Centered slides, first slide partially hidden #2081
Comments
Small workaround:
|
3 tasks
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
This is a (multiple allowed):
bug
enhancement
feature-discussion (RFC)
Swiper Version: 3.4.2.
Platform/Target and Browser Versions: Windows Chrome.
What you did
I wanted n number of slides. And if they fit horizontally in the viewport, I want them horizontally centered in the viewport. If they do not fit, you can swipe through all the slides.
I tried this by setting:
.slide-wrapper {
justify-content: center;
}
See https://jsfiddle.net/7kmeqjc2/
But if the slides do not fit and you swipe, the first slide is only partially visible.
Expected Behavior
I expect to see all slides completely when swiping.
Actual Behavior
The slides's offset is too far to the left and the first slide is not completely visible.
The text was updated successfully, but these errors were encountered: