How to make Responsive Card Slider in HTML CSS & JavaScript | SwiperJs

แชร์
ฝัง
  • เผยแพร่เมื่อ 22 ม.ค. 2025

ความคิดเห็น • 330

  • @bkishwarchavan7787
    @bkishwarchavan7787 ปีที่แล้ว +6

    bro you are pro developer.....many student got benifits of it ...superb

  • @lucamorropa
    @lucamorropa ปีที่แล้ว +17

    I just wanted to say I've discovered your tutorials not too long ago but the amount of videos I've watched and learn from you I will always appreciate and never forget. Thank you so much!

  • @lucasoriental6515
    @lucasoriental6515 9 หลายเดือนก่อน

    I'm speechless... I was trying to make this behavior in my React App by myself but I couldn't... Bro, you saved me! Thanks a Lot! I will implement on this way! Thanks again!
    SwiperJs is majestic!!

  • @ab_obada5012
    @ab_obada5012 2 ปีที่แล้ว +1

    Man I love TH-cam a lot. It introduces a lot of creative people.
    you deserve my appreciation.

  • @jkwilliams7148
    @jkwilliams7148 ปีที่แล้ว +2

    I coded along with you and this project works!! I couldn't get the little bullets under the images to show up but everything else worked fine! Thank you for an easy code-along. I appreciate you!

    • @davidruiz-bw5mx
      @davidruiz-bw5mx 10 หลายเดือนก่อน

      TE PASASTE UN DIV DEBERIA ESTAR DENTRO DEL SLIDE-CONTENT

  • @codingkatta7721
    @codingkatta7721 2 ปีที่แล้ว +46

    This is very helpful but Please try to add your own voice with explanation .

    • @CodingLabYT
      @CodingLabYT  2 ปีที่แล้ว +5

      Thank you for your kind suggestion. I will think about it.

    • @winter8136
      @winter8136 2 ปีที่แล้ว +2

      @@CodingLabYT your styling is really cool. But it's just that we don't understand what's happening, like why you use that (certain) css property? Why do we need to do this? Because you dont talk.

    • @mahatojigaming
      @mahatojigaming 2 ปีที่แล้ว +2

      @@CodingLabYT please think fast sirji

    • @prathamnemade2293
      @prathamnemade2293 ปีที่แล้ว

      ​@@winter8136 😊

    • @yasinsherif8875
      @yasinsherif8875 ปีที่แล้ว

      @@CodingLabYT yes sir it will helpful we can't follow with your flow

  • @CreativeTutorialsWeb
    @CreativeTutorialsWeb 2 ปีที่แล้ว +6

    What an amazing project great video Sir 👏👏

    • @CodingLabYT
      @CodingLabYT  2 ปีที่แล้ว +1

      Glad to hear that.

  • @ahmetdogukankonuk
    @ahmetdogukankonuk 2 ปีที่แล้ว +48

    For people who cant make it responsive, you can use this (like media queries but you can only edit slidesPerView, spaceBetween):
    breakpoints: {
    640: {
    slidesPerView: 2,
    spaceBetween: 20,
    },
    768: {
    slidesPerView: 3,
    spaceBetween: 0,
    },
    1024: {
    slidesPerView: 4,
    spaceBetween: 0,
    },
    },

    • @enezinho2222
      @enezinho2222 2 ปีที่แล้ว +1

      Adamsın dogukan

    • @ahmetdogukankonuk
      @ahmetdogukankonuk 2 ปีที่แล้ว

      @@enezinho2222 teşekkürler dostum

    • @vijendrapandey1830
      @vijendrapandey1830 ปีที่แล้ว

      can you please tell how can i display 4 cards instead of 3

    • @ahmetdogukankonuk
      @ahmetdogukankonuk ปีที่แล้ว

      @@vijendrapandey1830 all you need to do set slidesPerView to 3 in which screen size you want

    • @vijendrapandey1830
      @vijendrapandey1830 ปีที่แล้ว

      @@ahmetdogukankonuk not working

  • @saidanadam5373
    @saidanadam5373 2 ปีที่แล้ว +1

    The Best Content , i love You Bro

  • @TeachAshutosh
    @TeachAshutosh 2 ปีที่แล้ว

    Thank sir , you are my life on TH-cam platforms
    Because I have learn many code see your video.
    Big fan sir

  • @arthurkhallifa
    @arthurkhallifa ปีที่แล้ว

    i was trying to find a way to make those slider's responsive, to my lucky i found ur video, ty so much!

  • @martinezsalinasemiliano6543
    @martinezsalinasemiliano6543 ปีที่แล้ว

    the best video I’ve ever seen, thankssss!

  • @sasimo7019
    @sasimo7019 2 ปีที่แล้ว +6

    definitely diving into your videos. Thank you so much for taking the ti to teach us that are green in the field. Have a great day

    • @princechaudhary3382
      @princechaudhary3382 ปีที่แล้ว +1

      Do you guys really think that he taught you something valuable? He doesn't know what he is doing, he is just unnecessarily nesting the divs element without having a property understanding and clarity

  • @5420DhruvBarapatre
    @5420DhruvBarapatre ปีที่แล้ว

    Thank You Broooo.... For Teaching Slider In html Css ❤❤❤❤❤

  • @Gaanamusicrecords
    @Gaanamusicrecords 2 ปีที่แล้ว +3

    An excellent video turned out, everything is well thought out, a very clear instruction turned out)))

  • @kamalabuali1716
    @kamalabuali1716 8 หลายเดือนก่อน +1

    Hey so when I go try to find infinite loop with slides per group it is not appearing on the swiper.js website how can I fix this? The part of the video I am referring to is 12:55

    • @emilmuradov2064
      @emilmuradov2064 4 หลายเดือนก่อน +1

      In swiper js website Infinite loop with slides per group is not there , BUT you can use simple infinite loop and change the "slidesPerView : 1 " to "slidesPerView : 3 " or the amount of you want in the scripth.

  • @indidwilestari853
    @indidwilestari853 2 ปีที่แล้ว +4

    THANK YOU!!! TNice tutorials is such an amazing tutorial. I just got soft soft today and was playing around on it but had no clue how to really use it.

    • @CodingLabYT
      @CodingLabYT  2 ปีที่แล้ว

      You are so welcome!

    • @cinna_talks
      @cinna_talks 10 หลายเดือนก่อน +1

      @@CodingLabYT can you provide the code

  • @sumitrawat6621
    @sumitrawat6621 2 ปีที่แล้ว +2

    Great sir you are awsome 💕❤️😊

    • @CodingLabYT
      @CodingLabYT  2 ปีที่แล้ว +1

      Thank you so much 😀

    • @sumitrawat6621
      @sumitrawat6621 2 ปีที่แล้ว +1

      Sir i am 16 years old and very much interested in web developing
      You are my best teacher sir, i want be become your student

  • @pratyadutimishra3332
    @pratyadutimishra3332 2 ปีที่แล้ว

    Superb superb and superb!!!!!!!!!!!!!!!!!!

  • @RIbbb
    @RIbbb ปีที่แล้ว +1

    Great tutorial. Learned a lot (especially your shortcuts - didn't get that in my paid courses haha) would love some more of these using the current version of Swiper. Also a video on your thoughts about Swiper would be cool. Thank you and thanks for you great content.

  • @dipanjansaha9043
    @dipanjansaha9043 9 หลายเดือนก่อน

    kudos to you bro!!!!

  • @watashiuruhaku9901
    @watashiuruhaku9901 2 ปีที่แล้ว +1

    Nice tutorial, i just cracked soft soft ;)

  • @ZeinaAymanFathyMohamed
    @ZeinaAymanFathyMohamed 7 หลายเดือนก่อน

    that is extremely helpful♥

    • @CodingLabYT
      @CodingLabYT  7 หลายเดือนก่อน

      Glad it was helpful!

  • @abcfuture5779
    @abcfuture5779 2 ปีที่แล้ว +1

    cool keep it up bro

  • @jujuba_radioativa
    @jujuba_radioativa 10 หลายเดือนก่อน

    Thank you very much! This help me a lot!!

  • @davidross1332
    @davidross1332 ปีที่แล้ว +3

    My card fills the entire container, I have tried for hours to get this to work. My prev and next buttons wont work either and I can't slide with the mouse

    • @SagalMuhammad-hz6bz
      @SagalMuhammad-hz6bz ปีที่แล้ว

      i have the same problem please how did you fix it

    • @alaaeddine-in6yp
      @alaaeddine-in6yp 6 หลายเดือนก่อน

      add overflow:auto in index.css

  • @mysticminds914
    @mysticminds914 10 หลายเดือนก่อน +3

    in swiper js website the option the infinite loops one is not coming

    • @emilmuradov2064
      @emilmuradov2064 4 หลายเดือนก่อน

      In swiper js website Infinite loop with slides per group is not there , BUT you can use simple infinite loop and change the "slidesPerView : 1 " to "slidesPerView : 3 " or the amount of you want in the scripth.

  • @kabic18
    @kabic18 2 ปีที่แล้ว +2

    Excellent video. Thank you so much.

  • @Agong22067
    @Agong22067 ปีที่แล้ว +4

    When I put swiper-slide on the card div, its making the card take up the whole width of the container??

  • @t.i.i8608
    @t.i.i8608 2 ปีที่แล้ว +2

    thank you for the video, it's helpful!

    • @CodingLabYT
      @CodingLabYT  2 ปีที่แล้ว +1

      Glad it was helpful!

  • @JJ-ot3ps
    @JJ-ot3ps 2 ปีที่แล้ว

    love to see this in tailwind too!

  • @Basicknown
    @Basicknown ปีที่แล้ว

    Thanks this is very helpful 😊

  • @mylife9700
    @mylife9700 5 หลายเดือนก่อน

    you are really brilliant

  • @uniquegamer682
    @uniquegamer682 2 ปีที่แล้ว

    Thanks a lot for this video👍🏻👍🏻👍🏻

  • @TheBodik87
    @TheBodik87 2 ปีที่แล้ว

    Why on 4:20 - border: 4px solid #4070f4 do not work without !important; ?

  • @nanaagyemang230
    @nanaagyemang230 11 หลายเดือนก่อน +1

    This tutorial is good, i was able to learn something but the spaces between the cards did not come also the cards are not swiping as expected. if theres any way you assist me please.

  • @Muhammad-Saim-Rajpoot
    @Muhammad-Saim-Rajpoot ปีที่แล้ว

    Thanks ! Really helpful.❤

    • @CodingLabYT
      @CodingLabYT  ปีที่แล้ว

      Glad it was helpful!

    • @divyaangane5304
      @divyaangane5304 ปีที่แล้ว

      Hi do you have the swiperjs code?

    • @Muhammad-Saim-Rajpoot
      @Muhammad-Saim-Rajpoot ปีที่แล้ว

      @@divyaangane5304 yup . I have it . I integrated it in my website. Works perfectly.

  • @UdomTanong
    @UdomTanong 2 ปีที่แล้ว +1

    Excellent

    • @CodingLabYT
      @CodingLabYT  2 ปีที่แล้ว +1

      Thank you! Cheers!

  • @Henry_Nunez
    @Henry_Nunez 2 ปีที่แล้ว +1

    👏 EXCELENTE

  • @alexalejos1049
    @alexalejos1049 2 ปีที่แล้ว +1

    when I use the grid system everything overflows, maybe it is not compatible with the grid or is it an error in my code? thx for video

  • @zuhairn
    @zuhairn ปีที่แล้ว

    Thanks alot bro....it helps alot ❤🤍🌹🌹🌹

  • @palapa804
    @palapa804 2 ปีที่แล้ว +1

    I'm wondering, what if it's made automatically?,does it need to be reset all?

  • @jimenaulloa9720
    @jimenaulloa9720 2 ปีที่แล้ว

    really great work, thank you

  • @emadbr2048
    @emadbr2048 2 ปีที่แล้ว

    It was useful. Thank you ❤️

    • @CodingLabYT
      @CodingLabYT  2 ปีที่แล้ว

      Glad it was helpful!

  • @kevinsamir4655
    @kevinsamir4655 2 ปีที่แล้ว +3

    You have no idea how grateful I am for tNice tutorials series

  • @roro-hb2ho
    @roro-hb2ho 2 ปีที่แล้ว +1

    hi when i click on the buttons it moves the slider to right. how i can make it just a normal button??

    • @CodingLabYT
      @CodingLabYT  2 ปีที่แล้ว

      you can take source code, link is in description.

  • @robertcristian906
    @robertcristian906 2 ปีที่แล้ว +1

    I cannot color the bullets from pagination.The selector .swiper-pagination-bullet doesn't work. Any ideas ?

    • @Madson123100
      @Madson123100 2 ปีที่แล้ว

      Had the same problem, solved by switchin the "." for "-" before "bullet" in the css: .swiper-pagination-bullet{

  • @victoraugusto31
    @victoraugusto31 2 ปีที่แล้ว +2

    there is a way to create this effect without using SwiperJs, just with pure JavaScript ?

    • @ultimultig
      @ultimultig 2 ปีที่แล้ว

      I have been trying to figure out how to do this as well

    • @victoraugusto31
      @victoraugusto31 2 ปีที่แล้ว

      @@ultimultig I managed to do something similar only with JS but I was not satisfied

    • @mayankdagar7
      @mayankdagar7 2 ปีที่แล้ว

      2 ways:- 1- use an array of objects for the content and add an event listener with the function to work on the array of object .
      2- use arrays only but this will take a lot of time.

  • @Alex-xe6bl
    @Alex-xe6bl 2 ปีที่แล้ว +1

    when I set the slidesPerView to auto or whatever value. it puts the 1st item as last. the second item is displayed first

    • @CodingLabYT
      @CodingLabYT  2 ปีที่แล้ว

      You can take source code from my website link is in description

  • @rida1576
    @rida1576 ปีที่แล้ว

    when i took the colours grey and red out at the end the arrows disappeared how come?

  • @ezugwuemmanuel-v7c
    @ezugwuemmanuel-v7c ปีที่แล้ว

    really helpful

  • @waleefalrooh8
    @waleefalrooh8 2 ปีที่แล้ว

    How can I make it look like this as when someone add a new name, description and pic using javascript and inputs?

  • @hackeditz2.0
    @hackeditz2.0 2 ปีที่แล้ว

    Complete js in one vid from beginning plz and sorry for not commenting bcoz my phone drowned in water but now 😎😎

  • @ahmedabdelmonem2409
    @ahmedabdelmonem2409 2 ปีที่แล้ว +1

    Thanks for the tutorial

  • @mohamedyoussef8835
    @mohamedyoussef8835 ปีที่แล้ว

    Awesome video +++++++++++++ 🙂

  • @vinayshetty5929
    @vinayshetty5929 ปีที่แล้ว +1

    Please follow the steps exactly how he will do. in swiper download the version same as he downloads and make separate file for css and javascript to get correct output for slider

  • @davidruiz-bw5mx
    @davidruiz-bw5mx 10 หลายเดือนก่อน

    amigo excelentu tutorial, pero en esta parte cuando lo quito funciona el automatico a pasar las imagenes, pero cuando lo dejo ya se detiene que problema hay ahi ?

  • @itsmeed1608
    @itsmeed1608 2 ปีที่แล้ว +1

    are there variable that can make it autoSlider ?

    • @CodingLabYT
      @CodingLabYT  2 ปีที่แล้ว +3

      add this code for auto slider - autoplay: {
      delay: 2500,
      disableOnInteraction: false,
      },

    • @itsmeed1608
      @itsmeed1608 2 ปีที่แล้ว

      @@CodingLabYT thank you so much it works🤩

    • @CristianFigueroailandbz
      @CristianFigueroailandbz 2 ปีที่แล้ว

      @@CodingLabYT gracias me sirivio mucho.

  • @ararune3734
    @ararune3734 2 ปีที่แล้ว +1

    Holy mother of god somehow you always upload a video on the topic I need currently. Source code tho, how soon will it be there?

    • @CodingLabYT
      @CodingLabYT  2 ปีที่แล้ว

      Source code link will be uploaded soon.

  • @MohamedIslamDJOUABLIA
    @MohamedIslamDJOUABLIA ปีที่แล้ว

    hi bro , i dont know why when i clicked on the view more button of the second card it slide to the next card , whats the problem? how can i remove this

  • @BrianMaia
    @BrianMaia ปีที่แล้ว

    Thank you so much!

  • @colinaritchie
    @colinaritchie 2 ปีที่แล้ว

    If i want to copy and past multiple rows of these how could i stop the button from making all of them scroll

  • @gauthierr5513
    @gauthierr5513 ปีที่แล้ว +1

    I'm blocked with the js script, it doesn't work for me ...

  • @rollim3100
    @rollim3100 ปีที่แล้ว

    thank you very much !

  • @nasserabattouy2637
    @nasserabattouy2637 2 ปีที่แล้ว +1

    i have defenetely the same files and i don't understand where does my mistake comes from. let met explain : in summary, i only have one element that i cannot swipe.

    • @CodingLabYT
      @CodingLabYT  2 ปีที่แล้ว

      You can take all the source code file form my website, link is in description.

    • @nasserabattouy2637
      @nasserabattouy2637 2 ปีที่แล้ว

      @@CodingLabYT i wish i could do so. but the web site doesn't allow me to download it because of an adblock extension that i even don't have.

  • @vitaliykolesnik3449
    @vitaliykolesnik3449 2 ปีที่แล้ว +1

    THANK YOU!!))

  • @catorzehyago
    @catorzehyago 9 หลายเดือนก่อน

    tava funcionando tudo normal, chegou no javascript, deu errado

  • @BryanDevsCoding
    @BryanDevsCoding ปีที่แล้ว

    Nice

  • @jovansipka3267
    @jovansipka3267 2 ปีที่แล้ว

    Hello, I need help. I did everything same as in video, but when I click on button View More on central card (In my case Choose Team) then all slides slide. Effect is same like I click pagination dot below, how can I change that? I want to go on another page when I click that button, but that doesnt work, only work if I am in the last pagination dot, or If I click button on first card, but on the second card and third card when I click, doesnt work. I hope you understand my question. :)

    • @CodingLabYT
      @CodingLabYT  2 ปีที่แล้ว +1

      You can take all the source code form my website link is in the description.

    • @jovansipka3267
      @jovansipka3267 2 ปีที่แล้ว

      I fix it, it was bug with localhost. Everything works fine 😁

    • @sureshkanna8308
      @sureshkanna8308 ปีที่แล้ว

      How did you fix it. Can you please help. I'm also facing the same.

  • @marvelheroes6703
    @marvelheroes6703 ปีที่แล้ว +1

    The swiper won't work
    with dropdown

  • @hoahoangxuan9246
    @hoahoangxuan9246 2 ปีที่แล้ว +1

    How to quickly enter the new line to write code instead of click -> button?

  • @okoyedindu824
    @okoyedindu824 2 ปีที่แล้ว +2

    It didn't work for me
    The page keeps going blank

    • @CodingLabYT
      @CodingLabYT  2 ปีที่แล้ว

      You can download all source files, link is in description.

  • @ABHISHEKSingh-205
    @ABHISHEKSingh-205 ปีที่แล้ว

    Sir i love your video please add your voice especially in js video

  • @bhavanishankar9974
    @bhavanishankar9974 10 หลายเดือนก่อน

    After downloading swiper-bundle.min.css my output is not changing as in video any suggestions where I may did mistake and before that everything is working

  • @divyaangane5304
    @divyaangane5304 ปีที่แล้ว

    Hi.. I wanted the same design but seems swiperjs has removed the infinite loop with multiple div design... can i please get your code?

    • @0Rogi
      @0Rogi ปีที่แล้ว

      you can still use it by searching "swiperjs infinite loop with slides per group" on google

    • @emilmuradov2064
      @emilmuradov2064 4 หลายเดือนก่อน

      In swiper js website Infinite loop with slides per group is not there , BUT you can use simple infinite loop and change the "slidesPerView : 1 " to "slidesPerView : 3 " or the amount of you want in the scripth.

  • @godfirstjohnson1916
    @godfirstjohnson1916 2 ปีที่แล้ว +2

    The video is very nice, must it would have been more better it it was a little slower and explanation for beginners

  • @j.a_delute
    @j.a_delute 6 หลายเดือนก่อน

    What brain do you havee my gasssh 😫 This is really amazing! Thank youuuu!

    • @CodingLabYT
      @CodingLabYT  6 หลายเดือนก่อน +1

      I'm glad you like it

    • @j.a_delute
      @j.a_delute 6 หลายเดือนก่อน

      @@CodingLabYT I'm a new fan!
      🥰

  • @suvadipmahato542
    @suvadipmahato542 ปีที่แล้ว

    How too automatically fetch data from json file?? Please reply

  • @alejandrogonzalezalmazan218
    @alejandrogonzalezalmazan218 ปีที่แล้ว +1

    my swiper-pagination at some point disappear and I dont know why :(

    • @CodingLabYT
      @CodingLabYT  ปีที่แล้ว

      You can take all the source code from my website. Link is in description.

  • @saidanadam5373
    @saidanadam5373 2 ปีที่แล้ว +1

    Thank you so much

  • @houarizhdanove6502
    @houarizhdanove6502 10 หลายเดือนก่อน

    i cant find the buttom of slider ! next and previous !

  • @francodignani519
    @francodignani519 ปีที่แล้ว

    swiperjs is still working? because I cannot make it works :(

  • @storypoint5126
    @storypoint5126 ปีที่แล้ว

    What if we want multiple slider in one html file how to do that

  • @arunsaklani9890
    @arunsaklani9890 ปีที่แล้ว

    I have only 3 card will my card move on recycle

  • @namvbuddy1310
    @namvbuddy1310 9 หลายเดือนก่อน

    i dont know somehow I cannot change the color of the next and prev arrows buttons, it just doesnt work anymore i guess

  • @wedsonpinheiro1518
    @wedsonpinheiro1518 2 ปีที่แล้ว +1

    Where agent finds that name in CSS. @import ...

    • @CodingLabYT
      @CodingLabYT  2 ปีที่แล้ว

      In my latest video,I have shown how to import fonts and icons.

  • @RIZWAN_MEHMOOD10
    @RIZWAN_MEHMOOD10 ปีที่แล้ว

    i'm new in angular typescript can this work in angular

  • @christCE
    @christCE ปีที่แล้ว

    increíble tutorial, muy bueno

  • @jaatsahab5461
    @jaatsahab5461 ปีที่แล้ว

    hii everone, if someones code is not working, please check that you should have given links of slider files before your own css and js file links 11:57

  • @sinamalakzadeh4843
    @sinamalakzadeh4843 ปีที่แล้ว

    how can i hange the arrow color ?

  • @GiorgiRatiani31
    @GiorgiRatiani31 2 ปีที่แล้ว +1

    never guys never trie to learn such a big code
    try always small and ese wayy

  • @anaamaral6855
    @anaamaral6855 10 หลายเดือนก่อน

    Is there the code on github or codepen?

  • @TeddyWrestling
    @TeddyWrestling 2 ปีที่แล้ว

    Can I replace the arrow (swiper-navBtn) with an image?

  • @sanketgade1131
    @sanketgade1131 ปีที่แล้ว

    From where to get images ?

  • @broccoli1938
    @broccoli1938 2 ปีที่แล้ว

    trust me bro on spite of that I don't know who are you but I love you more than those who I know💙

    • @CodingLabYT
      @CodingLabYT  2 ปีที่แล้ว

      Thank you so much. Best regards from my side.

  • @mayankdagar7
    @mayankdagar7 2 ปีที่แล้ว +1

    I want 3 sections with the same functionality, how to do it?? Also how to change the width of every card

    • @CodingLabYT
      @CodingLabYT  2 ปีที่แล้ว +1

      Duplicate the slide container three times. To expand the cards width, increase the slide container width

  • @SquaredbyX
    @SquaredbyX 2 ปีที่แล้ว

    I just did the 1st one yesterday and had to update the slider js part by 2 lines missing from the video, I assume by the time that has gone by. Also had to add 1 level of nesting and give card its own space after swiper-slide.

  • @marcos2380
    @marcos2380 2 ปีที่แล้ว +6

    Maravilha aprendi muito

  • @Deus-lo-Vuilt
    @Deus-lo-Vuilt 2 ปีที่แล้ว

    amazing

  • @raniwadagule5594
    @raniwadagule5594 11 หลายเดือนก่อน

    How can I download code for card slider