Bootstrap 5 Carousel Multiple Items Responsive

  Рет қаралды 105,916

Coding Yaar

Coding Yaar

Күн бұрын

Пікірлер: 116
@EvgenyPrigozhinDEV
@EvgenyPrigozhinDEV Жыл бұрын
what happend to you that u came here to see an indian tutorial?
@aliyousif8765
@aliyousif8765 Жыл бұрын
Internship 😅😅
@anu.jangra
@anu.jangra 7 ай бұрын
Internship 😅
@uchihabolt
@uchihabolt 5 ай бұрын
Internship 😅😅
@nick231446
@nick231446 Жыл бұрын
This was very clear and easy to understand, words can't say how much I appreciate this so I ill just give this video a thumbs up, a subscribe and all notifications clicked.
@parthsapariya-rb2wb
@parthsapariya-rb2wb 3 күн бұрын
all propertise use but multiple image is not show please help
@travelsleisures
@travelsleisures Жыл бұрын
Thank you very much for your great unique solution! It works in Joomla 4 with Bootstrap v5.1.3 and jQuery v3.6.0. It means that we can make carousel just with standart tools of Joomla. It didn't work at first and I have error in Firefox: Uncaught TypeError: can't access property "scrollWidth", $(...)[0] is undefined and in Chrome: Uncaught TypeError: Cannot read properties of undefined (reading 'scrollWidth') But the author gave advice to place the script after the HTML or wrap the script in: $(document).ready(function () { //jQuery code }); and it started to work!
@leaalyu0430
@leaalyu0430 2 жыл бұрын
I followed the tutorial to the end, but the next and previous controls are not in the correct position, can you check my code? control position is on top of the card, not next to it
@codingyaar
@codingyaar 2 жыл бұрын
@LEA ALYU 04 Sure. You can share your code on discord. I'll have a look.
@brightblue
@brightblue 2 жыл бұрын
Hello and thank you very much for sharing this. I have been trying without luck to hide one the controls when you are on the first or the last item (since you cannot go any further it does not make sense to have the arrow) . Do you have any suggestions how one can do that ? (I actually manage to hide it but if I do, I cannot put it back once I am on the second card or once I have moved back to the second last)
@codingyaar
@codingyaar 2 жыл бұрын
Just like we check to stop going further, use an if statement to check if the scrollPosition is less than or equal to zero to hide the prev button and similarly for the next one. Update: Here's how you can do it kzbin.infol8E_1pL-Soo?feature=share
@adarshrathi8265
@adarshrathi8265 Жыл бұрын
your idea is excellent , first put card then put carousel, because in build carousel size not customize
@fatewriter
@fatewriter Жыл бұрын
Great video! This is exactly what I was needing!
@AyaanSajad
@AyaanSajad Жыл бұрын
how do we select all the image cards at once???? please lmk
@codingyaar
@codingyaar Жыл бұрын
Not quite sure, but are you looking for something like this (3 cards at once) kzbin.info/www/bejne/oXmznpJ3od2Dbbc
@mrcrazy00077
@mrcrazy00077 8 ай бұрын
if you are still here thanks for watching !! bolneka tharika thoda casual hai🤣💚
@codingyaar
@codingyaar 8 ай бұрын
🙃
@linzykim2909
@linzykim2909 Жыл бұрын
why when i delete "slide" ini html , the card can't move. If i not delete it, it's move but just move to the side and back again to the first position?? can you help me...
@codingyaar
@codingyaar Жыл бұрын
It's the opposite of what should be happening. Have you included the jQuery code properly?
@thomasalston
@thomasalston Жыл бұрын
Awesome video. Not much out on this topic, this helped me out. Thank you.
@codingyaar
@codingyaar Жыл бұрын
Glad it helped!
@parthsapariya-rb2wb
@parthsapariya-rb2wb 3 күн бұрын
only one image is show
@Aquadiction
@Aquadiction Жыл бұрын
Thanks for this video, got it working after a few failed attempts, just typos on my part! New subscriber here for sure!!
@tathyfigueroa7996
@tathyfigueroa7996 3 ай бұрын
this is not working for me and i dont know why :( can you help me? none of this is working, the carrousel keeps displaying the same
@Maxim99t
@Maxim99t Ай бұрын
maybe bootstrap overwrites your styling, make sure to use !important.
@pedropaulo5576
@pedropaulo5576 5 ай бұрын
if I try to add 2 carousels for different topics the button prev and next changes all carousels
@codingyaar
@codingyaar 5 ай бұрын
Here's how to manage multiple carousels on same page: kzbin.info/www/bejne/hIXaioqBh8uCaac
@rafaelmatera2180
@rafaelmatera2180 Жыл бұрын
Awesome thank you so much!!! 💯
@uttamkumarswarnakar4614
@uttamkumarswarnakar4614 Жыл бұрын
Which software are you using ma'am?
@codingyaar
@codingyaar Жыл бұрын
Visual Studio Code
@valerianafuna8972
@valerianafuna8972 Жыл бұрын
tried this same example but the card is not sliding away. it slides away and then back to the same position
@codingyaar
@codingyaar Жыл бұрын
Have you checked the classnames? Are you using a Bootstrap 4 carousel?
@hamzabouzeboudja5905
@hamzabouzeboudja5905 Жыл бұрын
it did not work for me , i followed you step by step but always stuck in the minute 1:21 , still one card only appear for me
@codingyaar
@codingyaar Жыл бұрын
are you using carousel-item div for each card?
@hamzabouzeboudja5905
@hamzabouzeboudja5905 Жыл бұрын
@@codingyaar yes
@codingyaar
@codingyaar Жыл бұрын
Try without the media query. There's also a step by step explanation on the site. If you are still stuck, you can share your code on discord.
@NeenuJose-ov7ng
@NeenuJose-ov7ng Жыл бұрын
I got this error, for me the positioning of the CSS file was the issue. Once I placed it after Bootstrap CSS it got fixed.
@headache2061
@headache2061 Жыл бұрын
Hello, so in my project, I want to have 2 carousels in one page, i tried and when i click on prev/next button of the second carousel my first one moved also, but when i click the one from the first carousel it works fine, the second one doesnt move at all (nomalr), how to fix it? Awesome video btw, very helpful!
@codingyaar
@codingyaar Жыл бұрын
You need to have unique ids for both. If their ids are the same, the controls will work for the first one on that page. You would also need to add the second id in the JS and wherever it's used.
@tusharshihab6955
@tusharshihab6955 Жыл бұрын
I don't want the cards stop scrolling when they reach at the last. So, how can I use loop for them?
@codingyaar
@codingyaar Жыл бұрын
You could add an else block and set the scroll position to 0 when you've reached the last card.
@luismiguelmusica8738
@luismiguelmusica8738 Жыл бұрын
CUANDO LO PONGO REPONSIVE LAS IMAGENES SE MUEVEN SOLAS Y RAPIDO. ¿ ME PUEDES AYUDAR? GRACOIAS
@codingyaar
@codingyaar Жыл бұрын
You'll have to use some JS to detect when the screen size changes to avoid that.
@vishalbrahma7382
@vishalbrahma7382 Жыл бұрын
Hi, thanks for this great video, but i am facing problem when using ngFor for carousal items, the navigation button is not working, i tried ng-container too but still its not working
@codingyaar
@codingyaar Жыл бұрын
It does work with ngFor. Are you getting any errors?
@valerianafuna8972
@valerianafuna8972 Жыл бұрын
i dont have any errors on the console
@hollymarshall1553
@hollymarshall1553 Жыл бұрын
Hi! Thanks for the video. Should this work with the new version of bootstrap?
@codingyaar
@codingyaar Жыл бұрын
Yes, it does work with the new Bootstrap version.
@NeenuJose-ov7ng
@NeenuJose-ov7ng Жыл бұрын
For me it is not working as responsive
@codingyaar
@codingyaar Жыл бұрын
are you getting any errors?
@EvaDress
@EvaDress 9 ай бұрын
Thank you so much!!! Great video
@thesandman-f3l
@thesandman-f3l 8 ай бұрын
hi. this not working. left right button animation.
@codingyaar
@codingyaar 7 ай бұрын
Sorry for the late reply. Did you manage to make it work?
@kcnitesh
@kcnitesh 8 ай бұрын
Amazing Thanks :)
@ashikeshan1529
@ashikeshan1529 11 ай бұрын
If you are still here.... then ????? hahaha
@codingyaar
@codingyaar 11 ай бұрын
🙃
@victor398
@victor398 10 ай бұрын
Great video.. can It be done with java instead of jquery?
@codingyaar
@codingyaar 10 ай бұрын
Why would you use Java for that? Do you mean JavaScript?
@victor398
@victor398 10 ай бұрын
@@codingyaar sorry, yes. I meant JavaScript....
@codingyaar
@codingyaar 10 ай бұрын
The website(link in the description) has a pinned comment below with vanilla JavaScript code.
@Bonini171
@Bonini171 8 ай бұрын
Great video! Nice work.
@zxxczczczcz
@zxxczczczcz 11 ай бұрын
how to make 3 items slide at same time
@codingyaar
@codingyaar 11 ай бұрын
As mentioned on the website, you need to multiply the cardwidth by 3: scrollPosition += cardWidth * 3;
@pedropaulo5576
@pedropaulo5576 6 ай бұрын
best of all time
@Belzie
@Belzie Жыл бұрын
the best and fastest tutorial, thank you!
@gumballcv1680
@gumballcv1680 Жыл бұрын
thank you
@khushi_pithadiya
@khushi_pithadiya Жыл бұрын
i'll try this code but slider can't move in my code when i click on next can you help me?
@codingyaar
@codingyaar Жыл бұрын
are you getting any errors in the console?
@khushi_pithadiya
@khushi_pithadiya Жыл бұрын
@@codingyaar yes error will in carousel.js file
@khushi_pithadiya
@khushi_pithadiya Жыл бұрын
this error occur Uncaught TypeError: Cannot read properties of undefined (reading 'keyboard') carousel.js:206 at at._addEventListeners (carousel.js:206:22) at new at (carousel.js:104:10) at slider.js:4:18
@codingyaar
@codingyaar Жыл бұрын
what's on that line? Have you checked if you are using anything that's undefined?
@orlandomorales4293
@orlandomorales4293 10 ай бұрын
Thank you so much! This tutorial was really helpful
@codingyaar
@codingyaar 10 ай бұрын
Happy to help 🙂
@Strongest845
@Strongest845 2 жыл бұрын
hi i have a problem: when i click next or previous button, it only moves one card then it go back to it places, it moves like a wave, it doesnt move all carousel, please help me
@codingyaar
@codingyaar 2 жыл бұрын
Moves like a wave? Sorry! I don't get what you are saying.
@Strongest845
@Strongest845 2 жыл бұрын
@@codingyaar its is very difficult to say:when you press next or previous button only 1 card move at a time, example when I press right, first card move to the right then move back to old position, press right again and the second card move like that. I set the bound is 4 cards, the cards from 5 and beyond never move to the screen. it is very hard to say because I'm not good at English
@codingyaar
@codingyaar 2 жыл бұрын
​@@Strongest845 still not sure but please recheck: - use the correct carousel for the respective Bootstrap version - check if you are using minified version of jQuery (which should be linked before the Bootstrap js link) - also check if you have removed the slide class from the carousel HTML
@Strongest845
@Strongest845 2 жыл бұрын
@@codingyaar ok so my error is look likes your steps 3 and 4 output on this video website source code, even though i followed your tutorials
@codingyaar
@codingyaar 2 жыл бұрын
@Manh Pham I've created a discord server for the queries that are difficult to solve in comments. Can you share your code or ss there?
@samoli02
@samoli02 9 ай бұрын
How to do it in react ?
@codingyaar
@codingyaar 8 ай бұрын
Sorry, I don't know that one
@samoli02
@samoli02 8 ай бұрын
It's ok bro
@peregrinodev
@peregrinodev Жыл бұрын
LOVE U SOME MUCH GOT IT
@codingyaar
@codingyaar Жыл бұрын
Got it
@anonymousmyanmar
@anonymousmyanmar Жыл бұрын
show mobile view
@codingyaar
@codingyaar Жыл бұрын
8:35 is the mobile view
@gomabibo
@gomabibo 8 ай бұрын
Thank you, miss!
@codingyaar
@codingyaar 8 ай бұрын
You're so welcome!
@Usaid-u5u
@Usaid-u5u 11 ай бұрын
Thank you
@codingyaar
@codingyaar 11 ай бұрын
Welcome!
@jcdeleon3295
@jcdeleon3295 Жыл бұрын
you saved my time thanks!
@codingyaar
@codingyaar Жыл бұрын
Glad to hear that! 🙂
@qx2t
@qx2t Жыл бұрын
thanks
@codingyaar
@codingyaar Жыл бұрын
Welcome
@robertarjona5407
@robertarjona5407 2 жыл бұрын
Nice video help me a lot
@codingyaar
@codingyaar 2 жыл бұрын
Glad to hear that😊
@dcentsonu6074
@dcentsonu6074 Жыл бұрын
his not work in apply this css .carousel-inner{ display: flex; } .carousel-inner .carousel-item{ display: block; margin-right: 0; flex:0 0 calc(100%/3); } pleas help mein i follow same pattern
@codingyaar
@codingyaar Жыл бұрын
Are the cards not displayed properly or the controls are not working?
@azhaa7697
@azhaa7697 Жыл бұрын
same error css is not working for me, card stil 1
@kacper4267
@kacper4267 Жыл бұрын
I have an error: site.js:124 Uncaught ReferenceError: bootstrap is not defined at site.js:124:20 where this line is: $(multipleCardCarousel).addClass("slide"); Someone know how to solve this?
@codingyaar
@codingyaar Жыл бұрын
Have you not linked Bootstrap's JS?
@kacper4267
@kacper4267 Жыл бұрын
@@codingyaar Yes:
@codingyaar
@codingyaar Жыл бұрын
🤔 try using the CDN link to check you have the right path
@kacper4267
@kacper4267 Жыл бұрын
@@codingyaar i used and then it works on mobile but dont on desktop. I have two links and it works with strange animations but... works :v with some errors but works
@codingyaar
@codingyaar Жыл бұрын
Make sure you have included jQery link before bootstrap's JS just before
Multiple Bootstrap Card Sliders On Same Page
1:48
Coding Yaar
Рет қаралды 8 М.
Bootstrap 5 Card Carousel | Multiple items carousel
10:19
Coding Yaar
Рет қаралды 106 М.
Как мы играем в игры 😂
00:20
МЯТНАЯ ФАНТА
Рет қаралды 3,3 МЛН
Incredible: Teacher builds airplane to teach kids behavior! #shorts
00:32
Fabiosa Stories
Рет қаралды 11 МЛН
7 ways to deal with CSS
6:23
Fireship
Рет қаралды 1,1 МЛН
Carousel Slider Bootstrap 5 | Slider Carousel Tutorial
14:23
Adrian Twarog
Рет қаралды 315 М.
How to make Card Slider in React JS | React Slick
9:03
Etisha Garg
Рет қаралды 140 М.
How to make multiple column Carsouel |Bootsrtap 5| codeflix
8:36
Bootstrap 5 HORIZONTAL Cards
25:56
A Designer Who Codes
Рет қаралды 12 М.
RESPONSIVE Bootstrap 5 Cards
8:19
A Designer Who Codes
Рет қаралды 104 М.
Bootstrap 5 Crash Course
1:11:15
Web Dev Simplified
Рет қаралды 479 М.