Open Pyvonix opened 6 years ago
it's an interesting solution 👍
Any feedbacks @XhmikosR ? If I remember well, you succeed to implement that with our current v4 carousel 🤔
My solution didn't make any use of an option, it always defaults to show 3, slide 1 on >= 768px.
I come back to you with a solution for the management of CSS based on a number of unknown elements.
As version 4 of bootstrap fully exploits flex. I propose to continue in this way and I propose something like this for the CSS part (related to the html posted the previous post):
.carousel-inner {
display: flex;
flex-direction: row;
flex-wrap: nowrap;
}
.carousel-item.active {
flex: 1;
}
In practice this solution needs small adjustments like .carousel-inner { height: 300px !important;
and .carousel-item.active {max-width: 600px;}
in my case to handle the different sizes of pictures.
But this is a very simple proposition, how have two advantages:
width: 1/number of element
. But I don't teach you anything.I hope to bring you a little more help to find the best solution.
Carousel is designed to flip one item at a time. If you need more items in each carousel slide, you'll need to nest them and customize to your project's requirements. As it stands now, I don't think this component needs to be any more complicated than it is today. Thanks for the suggestion, though!
In my opinion this should be reopened for v5 because it's quite common to have a product or thumbnail or gallery carousel showing multiple items and stepping 1 by 1. If you wish I can have a look and provide a pull request if i succeed. It just depends on the decision of the bootstrap maintainers because I don't want to waste time and effort if your opinions can't be changed.
@dtrunk90 if you think you can make a proper PR with tests and everything, feel free to proceed. I definitely agree it would be a good feature.
Also would like to advocate for this - this is a common use case, you see it very regularly in places like Netflix, I have had to bastardise the carousel to make it work here: https://studio.blender.org/films/spring/
Wish multi-items carousels would be available in Bootstrap 🙏 This seems to be the only really important component that's missing. These days almost every website has a multi-items carousel - specially on mobile, more and more designers now prefer to have carousels on mobile rather than stacking things up (so many designs trying to follow Netflix/YouTube/Fb/Insta/etc with their stories/reals carousels)
Also would like to advocate for this - this is a common use case, you see it very regularly in places like Netflix, I have had to bastardise the carousel to make it work here: https://studio.blender.org/films/spring/
This is a very good example of a website that has inspired me, may I ask if this website is yours?
I did build it yes, I left the project about a year ago though but mostly the same since! Thanks so much.
On Wed, 3 May 2023, 17:54 y377, @.***> wrote:
Also would like to advocate for this - this is a common use case, you see it very regularly in places like Netflix, I have had to bastardise the carousel to make it work here: https://studio.blender.org/films/spring/
This is a very good example of a website that has inspired me, may I ask if this website is yours?
— Reply to this email directly, view it on GitHub https://github.com/twbs/bootstrap/issues/27652#issuecomment-1533290338, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFMH2ZWEFHGL3MRDCPPQPODXEJ5UTANCNFSM4GDCHE4Q . You are receiving this because you commented.Message ID: @.***>
Another advocate for multiple items, step 1 by 1 here, would love it if this was available!
I'm using the last version of Boostrap (v4) and I find myself facing a limitation.
I'm trying to implement a carousel with multi-items active with a step 1 by 1 and I don't want a dirty solution like:
Because in this situation the step for the picture rotation will be 3 by 3. So I propose a solution to handle this case (but I don't have any skill in JS to do it and open MR).
Current process: The property
active
was removed from the currentcarousel-item
and added to the nextcarousel-item
. So we can imagine to add a value to know how many ative elements the carousel can display.Concrete case:
The JS take the value from
data-value
(or whatever the name is defined) and understand he have 3 (in the example)active
property at the same time. So I remove the firstactive
found and I addactive
to current element + 3.In this way, we can handle many new possibilities for the carousel.