Carousel Slider Bootstrap 5 | Slider Carousel Tutorial

Поділитися
Вставка
  • Опубліковано 9 лис 2024

КОМЕНТАРІ • 278

  • @AdrianTwarog
    @AdrianTwarog  4 роки тому +48

    I am trying to grow my channel, so if you find this video useful, #subscribe & hitting the #bell :) Thanks for watching and hope you liked and learnt something new!

    • @muhammadgiwa8841
      @muhammadgiwa8841 4 роки тому

      Will definitely do

    • @lastravaganza2385
      @lastravaganza2385 3 роки тому +3

      hey, im logging in the exact same code and it is not working the same for me, what seems to be the problem?

    • @ZAMINA1985
      @ZAMINA1985 3 роки тому +2

      Highly recommend a place like GitHub where we can see your code. It is hard to go through the video to check if we have mistyped or misplaced something. Other than that, excellent tutorial.

    • @Demonic6000
      @Demonic6000 3 роки тому

      Awesome 👏🏻

    • @knightkidcy
      @knightkidcy 2 роки тому +2

      can you share the code you used to create the page showing in the video? thanks, great video

  • @TheTriangle444
    @TheTriangle444 2 роки тому +127

    If you are using the current bootstrap, (version 5.1) your carousel will not slide. this is because the data-ride is now data-bs-ride. Took me a while to figure that out

    • @nathaniepeter5707
      @nathaniepeter5707 2 роки тому

      thank you

    • @chisom1376
      @chisom1376 2 роки тому

      Thank you because I got worried

    • @TECHNIXCAFE
      @TECHNIXCAFE 2 роки тому

      Thanks dude for helping us out.

    • @princejairofortuna7525
      @princejairofortuna7525 2 роки тому

      this is what i came for

    • @chimmilliusjenkins9013
      @chimmilliusjenkins9013 2 роки тому

      Thank you so much! I was starting to give up hope and out of desperation I checked the comments, appreciate you for taking the time to help the rest of us out.

  • @Pharizer
    @Pharizer 3 роки тому +127

    I was following the tutorial step by step but my slider wouldn't show up for some reason. I checked the docs and the solution is the following:
    You have to type "data-bs-ride" instead of "data-ride".
    Same thing with "data-bs-target" and "data-bs-slide-to".
    Idk how it worked in the video tho.

  • @CesarJuarezVargas
    @CesarJuarezVargas 3 роки тому +25

    Indeed, a well structured (albeit a bit too fast rendered) tutorial. Simple, elegant, effective. Friendly feedback: When I completed this project, Bootstrap 5.0.0-alpha1 was no longer available from the site; the latest version (as of Feb 2021) is 5.0.0 beta-2, and using it does not render the carousel the way it is demoed here. I had to "figure things out", and noticed that this beta2 version does NOT contain the jquery script reference on the starter template. This is the cause for the carousel to not rendered the way it's supposed to be. Therefore, I had to downgrade to Bootstrap 4.6.0 (which has jquery and popper scripts), and the challenge was solved. I think it's either a bug on the update or the Bootstrap gang just forgot to include the jquery reference on the beta2. Thanks very much!

    • @bash5352
      @bash5352 3 роки тому +4

      thank you very much i was trying to follow this tutorial and wodering why it was not working

    • @144heartx
      @144heartx 3 роки тому +1

      I'm also using the beta, I realized if I changed the button tags to the styling got fixed. The bootstrap documentation is not updated to reflect this change. Took a long time to figure out what was causing the issue.

    • @ARMADA-oz6we
      @ARMADA-oz6we 3 роки тому +2

      you are god

    • @killerz7545
      @killerz7545 3 роки тому

      @@ARMADA-oz6we PP YOU ARE

    • @pankajithape1218
      @pankajithape1218 3 роки тому +3

      Thanks @
      Cesar,
      I downgraded jquery & popper. Not worked. Needed to downgrade boostrap css also.

  • @toxic8196
    @toxic8196 3 роки тому +18

    The help i needed at 4am, thank you.

  • @manuelcasares7270
    @manuelcasares7270 3 роки тому +37

    If it doesn't work for you:
    replace all "data..." for "data-bs-..." attribute

    • @joseosvaldoloranascimento4181
      @joseosvaldoloranascimento4181 3 роки тому +4

      Excelent!!! It wasn`t work for me untill I read your comment!! Thank you!!

    • @amithalevi9180
      @amithalevi9180 3 роки тому +2

      broooooooo thanks so much i was so exhausted and you helped me , thank!!

    • @madalenamendes4302
      @madalenamendes4302 3 роки тому +2

      Thank you!!!

    • @Jaghall1
      @Jaghall1 3 роки тому +2

      Oh my goodnesss took me forever to get here. I wish the dude would fix that in the description or something!

    • @archanabiju9680
      @archanabiju9680 3 роки тому

      Thank you so much

  • @mynulislam7865
    @mynulislam7865 3 роки тому

    I'm from Bangladesh.I can't stop thanking you by calling cultural our word 'Bhaiya'💚...Thanks a lot,bhaiya👌🏻

  • @3mij3t
    @3mij3t 3 роки тому +22

    In 5:25 you write "data-ride="carousel" " and that got me crazy bc doesn't work for me. BUT i realized that writing "data-bs-ride="carousel" " works. Anyway, so much thanks for the tutorial (y)

    • @robertstimmel1100
      @robertstimmel1100 3 роки тому +2

      You just saved me a lot of time! I was having issues and this fixed it! Thanks!!

    • @woojinkiart9812
      @woojinkiart9812 3 роки тому +2

      wow my hero I was looking what wrong but u save me !

  • @Psychorabbit78
    @Psychorabbit78 3 роки тому +3

    Dude, this video just literally saved my rear. I thought I was updating a new project from bootstrap 4 to 5 but accidentally updated my live portfolio. With a slider being right smack at the top of my landing page, I had to dash to UA-cam to find a fix for not only that but functions like my hamburger button too. You earned yourself a subscription! :)

    • @bkiem
      @bkiem 9 місяців тому

      Send the code

  • @nirajbhakhar1066
    @nirajbhakhar1066 4 роки тому +12

    keep it up, Adrian.
    After watching this video I am a fan of you.

  • @mackynikat8833
    @mackynikat8833 3 роки тому +5

    The help I needed at 3:44am, hopefully this is already it

  • @freedombearreviews2548
    @freedombearreviews2548 Рік тому +1

    I really loved watching you code this . I am using bootstrap for a class and was looking to see how to activate the carouse template and how to apply the .active to the template to activate and make visible. Thank you so very much for your time.

  • @owenhood5391
    @owenhood5391 2 роки тому

    was working on a project but couldnt recall the carousel so u saved the day.you earned a subscriber

  • @arielmoisesmaradiagarodrig9707
    @arielmoisesmaradiagarodrig9707 2 роки тому +1

    I had a problem about responsiveness in my background image, but thanks to your video i solved it, thank you!

  • @MikeXwolf
    @MikeXwolf 4 роки тому +3

    This is by far the best tutorial on the subject I ever came across. Thank you!

  • @GR3GORY90
    @GR3GORY90 5 місяців тому

    Thank you for this tutorial. That was very helpful. There were some problems with the slider, but I think you should add "bs" after the data.

  • @MDevpxl
    @MDevpxl 3 роки тому +7

    The - thing didn't work for me.

    • @xXSummonNightXx
      @xXSummonNightXx 2 роки тому +3

      Just append bs to the middle after every data. Example "data-slide-to" change it to "data-bs-slide-to". I did what the commenter Kris said here and my slider works now.

  • @nathaniepeter5707
    @nathaniepeter5707 2 роки тому

    after struggling for a week straight i came across this channel

  • @garygoldblum5987
    @garygoldblum5987 2 роки тому +6

    Hi, I am really enjoying this lesson.
    I have noticed you do some amazing tricks within Studio Code and I am curious how you do this. I figured out how you create a class with ".container" and then hit "enter" and it pastes in "

    • @talhasupport3670
      @talhasupport3670 2 роки тому

      Hi Gary!
      This is a VS Code built-in feature called Emmet, which help you to write code faster.
      I hope this video will help you to learn Emmet faster. ua-cam.com/video/V8vizNQKtx0/v-deo.html

  • @muhammadgiwa8841
    @muhammadgiwa8841 4 роки тому

    I was watching this, and was half way in the video but I had to stop and give it a thumbs up for how highly educative and slow paced it is💥💥💥

  • @abhishekmodak6761
    @abhishekmodak6761 3 роки тому +1

    stumbled upon your channel....after trying few things.
    Got the exact solution....Thanks a ton.

  • @virajsh
    @virajsh 2 роки тому

    Thanks ! I could not make it work from the Bootstrap Website but this video helped me

  • @Yendi233
    @Yendi233 4 роки тому

    This might be the best I’ve seen!

  • @rinauh
    @rinauh 5 місяців тому

    SOOO HELPFUL THANK YOU

  • @AdityaRaj-lj5wf
    @AdityaRaj-lj5wf 2 роки тому

    My gosh! premium content mommy!

  • @idlconferencecentreknust6648
    @idlconferencecentreknust6648 4 роки тому +1

    Thanks, Adrian for this wonderful tutorial on carousel

  • @layagodfrey2768
    @layagodfrey2768 3 роки тому

    Best contain ever for the topic. I am loving this contain.

  • @walkdead94
    @walkdead94 Рік тому

    Nice!! :D Do it in bootstrap is very easy, easier than vue and react!

  • @marcinsven6016
    @marcinsven6016 2 роки тому

    I was sure Twarog must mean twaróg, our beautiful white cheese or quark as you call it in Australia ;)

  • @omidyshirazi
    @omidyshirazi 8 місяців тому

    such an incredible video I enjoy it a lot just wish u make an ecommerce website with bootstrap 5 and make a video about it

  • @lucapradella8065
    @lucapradella8065 3 роки тому

    You helped me, thanks, I'm from Brazil

  • @akmalfirmansyah4753
    @akmalfirmansyah4753 3 роки тому

    thank you to solve my problem about Carousel slide

  • @infinity2471
    @infinity2471 4 роки тому +3

    Awesome tutorial. It seems "sr-only" no longer functions with bs5, had to use "visually-hidden"

    • @dhamaradamsik8850
      @dhamaradamsik8850 3 роки тому +1

      Is the other source code still work for now? Cause bootstrap already updated their version again

  • @stealthbusiness
    @stealthbusiness 3 роки тому +1

    Excellent tutorial Adrian! :-)
    Would you please tell me how you setup Visual Studio to auto type what you're thinking?

  • @lonleybeer
    @lonleybeer 3 роки тому

    Thanks lad, this will definitely help me out on my Project. Cheers.

  • @richardmisek6533
    @richardmisek6533 4 роки тому +5

    HELP pls, I followed your code, I got icons for "click next" > or click previous <
    I have also lower _ _ photos
    but when I clcik on em, nothing is happening
    instead carousel is moving himself in interval

  • @babylee3975
    @babylee3975 4 місяці тому

    Great explanation

  • @QuiKzLeitOsLoW
    @QuiKzLeitOsLoW 2 роки тому

    Great video mate

  • @pranavbhatia8163
    @pranavbhatia8163 3 роки тому

    Really helped me. Well explained in short time.

  • @criativo3dprint17
    @criativo3dprint17 2 роки тому

    This was so helpful!! Thank you

  • @BadGirl-pn3qu
    @BadGirl-pn3qu 3 роки тому +1

    Thank you so much for sharing the knowledge!

  • @MrPeanutToes
    @MrPeanutToes 3 роки тому +2

    This assignment is killing meeeeeee I am not good at coding 🤬 appreciate the help

  • @dhamaradamsik8850
    @dhamaradamsik8850 3 роки тому +1

    Cool !!! Thanks for the tutorial, i'll subscribe 😁

  • @emilka8557
    @emilka8557 2 роки тому

    awesome ! thanks for your tutorial

  • @Sammorris207
    @Sammorris207 3 роки тому

    Thanks Adrian it really helped

  • @dyszell
    @dyszell 2 роки тому

    Thank you. You helped a lot.

  • @fahmiilmawan8710
    @fahmiilmawan8710 3 роки тому +1

    Cool and easy to understand, thank you

  • @rajesh.singha
    @rajesh.singha 2 роки тому

    Awesome tutorial

  • @yousefalhassan8078
    @yousefalhassan8078 2 роки тому +1

    Great, thanks a lot

  • @maazaziz5198
    @maazaziz5198 2 роки тому

    exactly what i needed :)

  • @raba650
    @raba650 3 роки тому

    I'd like to see if you can show multiple items using the Bootstrap 5 carousel.

  • @ALessOffensiveName
    @ALessOffensiveName 2 місяці тому

    good video. helped me a lot

  • @usmanabid7950
    @usmanabid7950 3 роки тому

    Best Tutorial 👌

  • @ayansultan9764
    @ayansultan9764 3 роки тому

    Awesome tutorial! THX!!!

  • @jarifahmad12
    @jarifahmad12 3 роки тому +1

    great video, but only problem is that my carousel fade is not working for some reason? any suggestions?

  • @AlphyGacheru
    @AlphyGacheru 4 роки тому +1

    Thanks very much, very helpful!

  • @santiagoortiz619
    @santiagoortiz619 4 роки тому +2

    Amazing information! Infinite Vegemite for you mate!

    • @AdrianTwarog
      @AdrianTwarog  4 роки тому +1

      That's exactly why I made this, for the vegemite!

  • @NgodingPintar
    @NgodingPintar 3 роки тому +1

    Nice ☺

  • @riponroy116
    @riponroy116 3 роки тому +2

    Please do a complete project with bootstrap 5

  • @syronox5357
    @syronox5357 2 роки тому

    why does the code on the official bootstrap website has elements instead of ( which dont work for me and this does)?

  • @mjaathik
    @mjaathik 4 роки тому +1

    Thank you very much Adrian

  • @aminea5324
    @aminea5324 2 роки тому

    yes is very nice good job continue bro

  • @bosar18
    @bosar18 2 роки тому

    thank you so much :D

  • @manojkala1
    @manojkala1 3 роки тому +1

    Hi I am fan of yours

  • @zakariasofi4539
    @zakariasofi4539 2 роки тому

    100% I make the sickest soft in my head all day long then the mont I open a DAW...

  • @srinivasaraoyp3640
    @srinivasaraoyp3640 4 роки тому

    Very interesting topic, thank you.

  • @Sure_Math_Center
    @Sure_Math_Center Рік тому

    Thank you.

  • @malmossa
    @malmossa 3 роки тому +1

    Thank you sir for this, could you show how to add thumbnails images to Bootstrap Carousel . . that will be highly appreciated

    • @juliettet8332
      @juliettet8332 3 роки тому

      I think you just have to change the w-100 class of the img :)

  • @eloquent2200
    @eloquent2200 2 роки тому

    Thank you!

  • @prakashlulla4554
    @prakashlulla4554 Рік тому

    awesome !!!!!

  • @kkkkk943
    @kkkkk943 4 роки тому +2

    Hi, thank you for your video!It works except that during transition to another picture, the whole thing drops down for one second and then goes back to the correct position. Anyone can tell what happen?

    • @AdrianTwarog
      @AdrianTwarog  4 роки тому

      that's odd, check the doco make sure your css is set well :)

  • @jensbruning8756
    @jensbruning8756 4 роки тому

    Thanks for your work . Comes more with Bootstrap 5 ?

  • @raghojiconstructionsandint8344
    @raghojiconstructionsandint8344 2 роки тому

    tNice tutorials tutorial was very satisfying

  • @brianronin505
    @brianronin505 2 роки тому

    pra algum br que estiver lendo isso aqui, a dica é colocar "bs" depois do "data" assim data-bs-exemple

  • @salomon7249
    @salomon7249 3 роки тому +1

    There is one Problem:
    Let's say you have an Login-Form. How do you keep your inputs through all the transitions?

  • @Demonic6000
    @Demonic6000 3 роки тому

    Awesome 💗

  • @yusufhabib7553
    @yusufhabib7553 3 роки тому

    nicee tutorial, thank you very much brother

  • @gulomxonyoldoshxonov1648
    @gulomxonyoldoshxonov1648 3 роки тому

    Thank you. Very good vidio👍👍👍

  • @aleksapesic
    @aleksapesic 3 роки тому

    Nice tutorial and nice slider. Everything works nice except for when I add overlay-image, as soon as I do that the slide goes black, no matter what styling I apply. Could you help me?

    • @krenarallen
      @krenarallen 2 роки тому +1

      .overlay-image {height: 100%}

    • @ALessOffensiveName
      @ALessOffensiveName 2 місяці тому

      The issue for me was having overlay-image div outside of the carousel-item div. Needs to be in it

  • @lastravaganza2385
    @lastravaganza2385 3 роки тому +2

    i copied the exact code and it is not working for me

  • @raissaaraujo9414
    @raissaaraujo9414 3 роки тому +1

    I couldn't put the right links, could someone please send me the bootstrap link used by it?

  • @Pause4Code
    @Pause4Code 3 роки тому +2

    Hey, which extension do you use for auto completting the tags ?

  • @ihelpdogs
    @ihelpdogs 9 місяців тому

    I realize this vid is 3 years old but wondering if anyone can answer: Why do I see most developers using Swiper or Owl or some other carousel when they're also using Bootstrap that has the built-in slider? It looks and seems to work pretty good so why don't they want to use it?

  • @f1dog
    @f1dog 3 роки тому

    Thank you Adrian. For some reason, my carousel won't work though.

  • @faloduniseoluwa6500
    @faloduniseoluwa6500 Рік тому

    I was trying to put this below my navbar but it pushed my navbar up. Please how would I fix this

  • @ademtemizisler8041
    @ademtemizisler8041 3 роки тому +1

    hello Adrian, I made the carousel but the picture size is too big so it doesn't fit, what should I do?

    • @AdrianTwarog
      @AdrianTwarog  3 роки тому

      Edit the image, edit the css, or update the JavaScript media sizes via the documentation

  • @abdifatahabdi3939
    @abdifatahabdi3939 2 роки тому

    Hello,
    can we make those background images dynamic so that we can update dynamically using like django. if you have an ides about it please share with us

  • @Heavenig
    @Heavenig 3 роки тому +2

    Please I need the source code maybe from github

  • @thelma2084
    @thelma2084 3 роки тому

    Thank you sir

  • @angerichardakobe5748
    @angerichardakobe5748 2 роки тому

    Is it possible to add images in the function of the carousel?

  • @msvmanikantasrivishnu7788
    @msvmanikantasrivishnu7788 4 роки тому +1

    Thank you

  • @bigZitronenschale
    @bigZitronenschale 3 роки тому

    I need help:
    I am a total beginner in webdev and not "allowed" to use the div element for an university class project. All code I find online is packed with div elements though, especially in combination with bootstrap since items are altered through the class attribute.
    Can any of you maybe recommend me a good alternative I could use instead of div, or do I have to come up with a whole new approach to coding? Thanks for the help!

    • @flotspe
      @flotspe 3 роки тому +1

      I 'm assuming they impose that silly rule because they want you to explore semantic html elements: header, footer, nav, aside, main, section, article (and a few others). Look for semantic html on google or UA-cam. Just remember that sometimes a div is just the best choice (when it's used just for styling purposes, for example)

  • @Deensquare
    @Deensquare Рік тому

    I don't understand why but my carousel is not sliding. Nor is the background color showing up. I tried changing the data-ride to data-bs-ride but it's making no difference

  • @TheTriangle444
    @TheTriangle444 2 роки тому

    the overlay image css didnt work for me :( it doesnt display the image unless i set a width.
    edit: ok, just set width to 100%, along with his codes it will cover all the space of the slider div :)

  • @cbgregoire9
    @cbgregoire9 3 роки тому

    Followed your tutorial but Bootstrap just won't work. I really don't know why. Saw something about data-ride should data-bs-ride but that didn't help either.

  • @gohelboy
    @gohelboy 4 роки тому +1

    How to set slider height and width in asp.net !

  • @guidobagnai6789
    @guidobagnai6789 2 роки тому

    I tried to follow the tutorial to understand how these work but i get a very laggy transition between the slides, i see the gray and white areas swapping color for a sec and then it loads the second slide. I alsp tried on different browsers so at this point i suppose i did something wrong

  • @josephlustigiermbong5121
    @josephlustigiermbong5121 2 роки тому

    thank's

  • @MR-KN
    @MR-KN 2 роки тому

    Why my carousel not coming on Chrome browser but it's coming in live?

  • @pearldarkowaayeboah1210
    @pearldarkowaayeboah1210 Рік тому

    Why did you not add a navbar to it; as shown in the thumbnail