Bootstrap 5 Card Carousel | Multiple items carousel
HTML-код
- Опубликовано: 2 июн 2024
- Here's how you can modify the Bootstrap image carousel to create a Bootstrap carousel with multiple items.
HTML | CSS | BOOTSTRAP
Timestamps:
0:00 - Final Output
0:10 - Channel Intro
0:14 - Add Bootstrap carousel with controls
0:30 - Replace images with Bootstrap cards
1:33 - Display three cards per slide and additional styling
5:10 - Display one card per slide on mobile and hide the rest two
7:02 - Replicating carousel to display different version on mobile
9:00 - Extra styling
Source code for Card Carousel Bootstrap 5:
codingyaar.com/bootstrap-4-ca...
Disclaimer:
This video was made using Bootstrap 5 while the source code uses Bootstrap 4. So make sure you use the correct starter template/links and the respective carousel.
Bootstrap 5 Carousels Playlist:
• Bootstrap 5 Carousel
Bootstrap carousel with vertical text thumbnails on left:
• Bootstrap 5 Carousel w...
Bootstrap 5 Navbars Playlist:
• Bootstrap Navbar Chang...
Bootstrap 5 Cards Playlist:
• Bootstrap Card Designs
#bootstrapcarousel #carousel #slider #bootstrap #bootstrap5
Coding Yaar's Discord server: / discord
Buy Me A Coffee☕️:
www.buymeacoffee.com/codingyaar
really helpful. trust me, you guys wont regret your 10mins for following the steps.
really good content, short videos and directly to the point.
This is exactly what I needed for my project! Thanks for the help.
You helped a lot with my new E-Commerce project.
As i have just started web-development I am still a noob :)
This helped me a lot in my project! Thank you
Thank you! This video was really helpful :)
Ima download it thanks for sharing!!
BROTHER, YOU ARE THE BEST!!! You oooh really helped me!! THANK YOU VERY
thx, i was looking for this for hours :D
Thank you! This video is really helpful!
Really helpful!!, Thanks for the help and guidance
thank you very much, this is very helpful
Hey, I'm just starting to get into making soft and tNice tutorials 17 minute video helped a LOT MORE than those one hour long tutorials out
many thanks for the work done on recording the video and a clear explanation
Glad it was helpful! 🙂
thankyou for this video this helps me a lot
thank you very much, youve helped me a lot
hi i have one problem with carousel when i click on next that rest 3 card change for few sec in colum even i did flex
Love your stuff! Big help!
Happy to help!🙂
Thank you so much 💙
so muchh helpingg, thankss ^^
Very good! Thank you for tutorial.
You are welcome! 🙂
thank you so much!
GREAT VIDEO!!!!!!!!!!! I LOVE YOU
thank you so much, you have saved me a lot of time.
Glad to hear that🙂
Thank you!
#HELP , the cards after click on right button shows up in column, why?
Keeps you creating ;)
thank you video help me alot
Firstly, this is a beautiful tutorial. I will definitely be checking out your other videos. But when I tried this, the card displays only one at a time. Any fix?
have you placed 3 cards each in carousel-item divs?
@@codingyaar Ah right got it. Thanks yaar, looking forward to more stuff
Muchas gracias :)
Thank you very much. It help me for my project. To help others people: change by , give a background #000 to button and modifie the "button css code" to have a correct position of them. All it work well !!!
Really nice 👍. Good explaining. Keep going sister.
Thank you, I will 😊
ok, it works fine in desktop mode, but when I apply mobile mode it doesn't work properly, i.e. when in mobile mode only the first card of each carousel-item div element is showing while the second and third cards are not showing
That is because of the classes used to hide elements on specific screen sizes. You can either replicate the carousel as shown at 7:02 or there's another video for the Bootstrap carousel with multiple items which uses jQuery, which even allows you to slide one card at a time.
thanks yaaar
It's not working for me. it may be some different css.
I use 5.2 bootstrap.min.css.
carousel-item has display : block for active and others has display: none. so just one card is only displayed not 3 card.
You need to add 3 cards in the same carousel-item div wrapped in cards-wrapper class. So there are still 3 slides and the active one shows up.
@@codingyaar Oh. right. just I added one card into a carousel-item. thank you.
Reall good, i'm applied with my data. I can't run loop on next in class="carousel-item". Can you help me, please?
🤔 so, the controls not working for you? Do you have 3 cards in each carousel-item div?
@@codingyaar i have 6 card but i want to show each 3 card.
Well, then it's just like in the video. Place 3 cards each in 2 carousel-item divs. You can check the code on the website if you are still confused.
What's the media query to display 3 cards in a medium screen size when I used 4 cards in a large screen?
Try this one for more customization:
ruclips.net/video/nS_Ht0lT-uQ/видео.html
@codingyaar previous , slide button not working. Can you give full source code with bootstrap link and js script in a single file
Template used :
Hello, world!
Hello, world!
For Bootstrap 5, replace the data- attributes with data-bs-
For instance, instead of data-slide use data-bs-slide.
Here's a codepen link that uses Bootstrap 5 carousel: codepen.io/codingyaar/pen/xxjgRWN
@@codingyaar Thank you. it works!
But i need to take images from mysl db and it is dynamic. Dont know how to do that. any help please
If you have the images fetched, you would need to loop it conditionally
@@codingyaarThank you it works
order you choose Possibilities are endless.
bootstrap is not defined
at index.js how I can solve this error
I don't know what you are using, but have you imported Bootstrap in your index.js file?
Nice tutorial ,tks for it . But why my previous and next buttons are not working. Pls help to fix it.
Check if you are using the correct data attributes. For Bootstrap 5, the controls should have the attribute data-bs-target.
Thanks for the reply . Its working now.@@codingyaar
I want the slider to be reponsive like big screen 5 slides min screen size 3 slides and small screen 1 by 1slide
@@codingyaar
You can hide the slides as described in this video or try this instead: ruclips.net/video/nS_Ht0lT-uQ/видео.html
Tku so much that this video itself clearly explained . Great work .Able to bring the 5 slides and 1 slide for large ans small screen respectively. But when I am adding the medium screen with the class d-md-none , getting two outputs on the same page like small screen output on top and medium screen output on below to it . When checking fro medium screen also getting two such outputs but large screen works fine. Kindly pls help to fix it. Thanks in advance@@codingyaar
hi, your source code is bootstrap 4?
Yes, since it was posted a long time ago. You can still follow the same steps using a Bootstrap 5 carousel from the official documentation page.
why my button don't work ? can you help me fix my code ???
Sure. You can share the code on Discord or email.
@@codingyaar oh fantastic , but i was fixed my code . tks so much. i love youuuuuuu
Isn't it better to remove max-height/width to just height/width:100%; ??
When elements are of the required size, then sure. But suppose when images could appear stretched or larger than the container, you can use max-height/width to prevent that.
Amazing tutorial but mobile view pr ek card ki height lambi si aa rhi don't know why
Images uneven ho to height specify kardo small screens ke liye media query use krke
idk why my prev/next buttons doesn't work
Are you using multiple carousels? If so, check the ids.
The id should always be unique. When you have similar elements and want to reuse CSS, use classes.
So yes they must be different.
@SA'DAD ALI WARDHANA 2020 how can i solve it
ma’am medium screen k liye hide kese krte h carousel
Medium screen ke liye: .d-md-none .d-lg-block
_Reference_ : getbootstrap.com/docs/5.3/utilities/display/#hiding-elements
how to set it as multiple in mobile view
Remove the classes used to hide the cards
How to slide images one by one in large screen
This might be the one you are looking for: ruclips.net/video/nS_Ht0lT-uQ/видео.html
@@codingyaar Thank you so much lady ☺️☺️😘😘
Carousel slides cards by 3 items at once. Is not good :(
Here's the one that slides one card at a time:
ruclips.net/video/nS_Ht0lT-uQ/видео.html
good😆😆😆
😁 😁 😁
bruh i cant build. can you teach me?
I'm not a pro. I built a basic one watching youtube tutorials.
Suggestions for you,
India and Pakistan me Eng se jyada hindi boli jati hai, to aap hindi me banaya kro video
Should I switch to Hindi?
@@codingyaar ji bilkul,
Is this responsive?
kind of 🤔... you can also check this one: ruclips.net/video/nS_Ht0lT-uQ/видео.html
Why????
?
i try but not working
Could you tell me about the problem you are facing?
Sa
Worst…where to copy where to paste just a worst habbit…if you want to forgot that you had learned previously do not watch this video
hahsdhahah good