-
Notifications
You must be signed in to change notification settings - Fork 6
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
[layout] Allow centered slides #28
Labels
Comments
Can the new CSS scroll snap control may helps? |
It could, but it may also require deep refactoring. Also, the new version of the spec is not supported by many browsers, so it would require a fallback solution |
Btw this can be done easily by composing in the light dom. Users can define slider with a single centered content. Something like this: <style>
div {
display: flex; /* or grid */
justify-content: center;
}
</style>
<macro-carousel>
<div> [Centered Content] </div>
<div> [Centered Content] [Centered Content] </div>
<div> [Centered Content] </div>
</macro-carousel> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The selected slide would be in the middle of the view.
This would require a few changes to how the carousel works.
The text was updated successfully, but these errors were encountered: