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

Option to show different amount of carousel-items rather than 5 #4773

Closed
lastnoob opened this issue Jun 6, 2017 · 5 comments
Closed

Option to show different amount of carousel-items rather than 5 #4773

lastnoob opened this issue Jun 6, 2017 · 5 comments

Comments

@lastnoob
Copy link

lastnoob commented Jun 6, 2017

Description

Currently the carousel is showing 5 carousel-items (one active, 2 slightly faded on the sides, and 2 even more faded further on the sides). I'm looking for an option to show a different number, like 3. Only the active one and 2 slightly faded ones. When you swipe to either directions (changing the active slide), the other carousel-items still should show up.

Like here: http://materializecss.com/carousel.html

So, instead of this:
materialize

I want this:
materialize2

Again, this would just temporarily hide the 2 carousel-items at the sides, and when it's their turn to show up, they would.

Am I missing something and it's possible to do it without custom JS?

@tomscholz tomscholz changed the title [CAROUSEL] Option to show different amount of carousel-items rather than 5 Option to show different amount of carousel-items rather than 5 Jun 6, 2017
@lastnoob
Copy link
Author

lastnoob commented Jun 9, 2017

or any ways to dynamically target the left side carousel-item and the right side carousel-item to change its css?

@lastnoob
Copy link
Author

@tomscholz any idea how to do this?

@tomscholz
Copy link
Contributor

Only add 3 slides?

@lastnoob
Copy link
Author

So it's not possible to add e.g. 8 slides, but only show 3 at any given moment? (and if you swipe one, obviously a new one comes up)

thanks

@acburst
Copy link
Collaborator

acburst commented Feb 28, 2018

Added in cbb4523

@acburst acburst closed this as completed Feb 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants