Episode 1: Carousel slider control with navigation and controls (testimonial slider, content slider)

แชร์
ฝัง
  • เผยแพร่เมื่อ 25 ส.ค. 2024
  • Link to prototype: www.kodhus.com...
    In this tutorial we are going to create a full featured carousel content slider.
    Enjoy!

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

  • @Watch217
    @Watch217 4 หลายเดือนก่อน +2

    If you're watching this in 2024, you have to subscribe😇....its the best tutorial worth your time. Thanks Man👏

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

    Here in 2023, you keep saving us with this brilhant tutorial, thanks !!!

  • @Yk-yt9wx
    @Yk-yt9wx 4 ปีที่แล้ว +9

    This is best slider tutorial! You explain the content so clearly and efficiently

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

    I’ve been searching for a week on how to do this w/o a library. Subscribed for real.

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

    Best tutorial and spot on! All tutorials on YT are about images. This is most flexible and clearly explained. Big Thanks!!!

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

    this is literally the best carousel tutorial i've watched..............thankyou

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

    Wow...! The method you have used here is unlike any other I know. Now I've got a new snippet to work on. Thanks for the tutorial

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

    This is brilliant. Definitely deserves to be the topmost ranked tutorial regarding the making of js carousel!

  • @victornorman3671
    @victornorman3671 3 ปีที่แล้ว

    Best tutorial for a carousel I've found.

  • @virginijameilune465
    @virginijameilune465 3 ปีที่แล้ว

    Very well explained and easy to follow. I managed to apply it to my own testimonial slider design while doing it for the first time and felt very proud of myself. Thank you very much for this helpful tutorial.

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

    Hey man! Thank you so much for this piece of heaven! I passed through a lot of tutorials here in TH-cam, but yours worked absolutely perfect for my purpose! keep the good work, I wish all of the best for you!

  • @codewithdahir
    @codewithdahir 3 หลายเดือนก่อน

    This is pure knowledge bro

  • @wattsonthetube
    @wattsonthetube 3 ปีที่แล้ว

    Thanks so much for the tutorial, I was having issues with my positioning - I was using inline-block, which meant that my slides did not line up in the container. Really happy with your tutorial and solution :)

  • @bounce21190
    @bounce21190 4 ปีที่แล้ว

    Great tutorial with clear explanation as to what you're doing and why you're doing it.

  • @bloodzz4813
    @bloodzz4813 3 ปีที่แล้ว

    Wow, I have been searching for these series for days and days Lol,
    Your videos are amazing

  • @HCforLife1
    @HCforLife1 4 ปีที่แล้ว

    Thank you for your tutorial. I actually tried to do that just after your explanation how its work and I did it! Thank you. Than I followed the rest of tutorial to see how your code was different than mine. I added as well the functionality to determine how many sections is in total and based on that set automatic scaling for scroll.

  • @roguishowl3915
    @roguishowl3915 4 ปีที่แล้ว

    this is the best tutorial i found on YT, thanks for a great vid

  • @jmgomw7787
    @jmgomw7787 3 ปีที่แล้ว

    Agreed that this was a very well explained tutorial. Many thanks!

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

    Very good tutorial. simple and effective at the same time.

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

    thank you very much for this amazing beginner-friendly video 🥰

  • @mturalyon6669
    @mturalyon6669 3 ปีที่แล้ว

    Thank you so much! This gave me great inspiration for an Exam im doing right now

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

    Definitely enjoyed! Thank you, you solve my problem!

  • @MsamerieJohnson
    @MsamerieJohnson 3 ปีที่แล้ว

    Best Tutorial ever.

  • @davidsuchan1641
    @davidsuchan1641 3 ปีที่แล้ว

    Thank you so much for this perfect tutorial. Amazing!

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

    my second question : this works well for 4 images in a slider as its divided evenly, what if the slider has uneven numbers of images such as 5, what would be the solution

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

    thankyou! very helpful.. i wish all of the best for you!

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

    This video is great! It saved me, thank you

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

    this is awesome thanks for the video
    I just want to mention that I Promiss you are persian and from iran
    I know this accent😅

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

    Thank you for a great tutorial. Your pace is perfect and you run through details brilliantly.
    At the end though, I noticed the indicator didn't update as I went backwards using the left arrow.
    Where you noted to move setIndex() up one level, within document.querySelectorAll, I did the same for leftArrow.addEventListener and rightArrow. This fixed the issue :)
    It would be a great addition to have the slider automatically move through each slider to the end, and then restart from the first slide. The user can still click but an automatic slide would be great. :)

    • @ShivamYadav-ip1vb
      @ShivamYadav-ip1vb 7 หลายเดือนก่อน

      You can keep count of maxIndex by using slider.children.length and then in left arrow function compare if sectionIndex greater than 0 than sectionIndex-1 or if not maxIndex-1
      Similarly for rightArrow compare if sectionIndex is less than maxIndex-1. If yes set sectionIndex+1 or else 0.
      This way you'll have infinite carousel no matter how many elements you add

  • @JorgeRodz04
    @JorgeRodz04 3 ปีที่แล้ว

    Thank you! this tutorial really helped me!. 😊🙋‍♂️

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

    A wonderful tutorial indeed... Finally a slider that is fully in your control...
    Just wondering if there is a way to remove left and right arrows from the first and the last slide... I tried a lot of things but nothing seems to work...

  • @robertowagner3462
    @robertowagner3462 4 ปีที่แล้ว

    Very useful tutorial, thank you.

  • @anwarshaikh8090
    @anwarshaikh8090 6 หลายเดือนก่อน

    Very helpful!!!

  • @Salye
    @Salye 3 ปีที่แล้ว

    1 subscriber thanks for your job man !

  • @keirembathoungamm1935
    @keirembathoungamm1935 4 ปีที่แล้ว

    thank you so much for making this video, you are great....

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

    nice explaination

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

    Great tutorial! I have noticed that at end tutorial when clicking to the arrows it will not change indicator.

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

    Merci beaucoup pour ce tuto! 👌

  • @AhmedSamir-hx3ip
    @AhmedSamir-hx3ip 5 ปีที่แล้ว

    you are great dude, thank you so much & keep it up

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

    Hello, how are you
    Thank you very much for this very useful lesson for me, I learned well from it, once again thank you

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

    Excellent video thanks! Just one problem and I really hope you can help me out... For me the right and left arrows, or rather the slider.style.transform does not work, I've been searching for a while now and it seems that the problem is that the transform doesn't work on block elements such as the slider, and that the only possible solution I can find is to change the slider div to Display: inline-block, but when I do that the slider just completely disappears.
    Please help would be so much appreciated!
    Hope to hear from you.
    Kind Regards.

    • @user-gf3ql3yg7v
      @user-gf3ql3yg7v 6 หลายเดือนก่อน

      I did the same for leftArrow.addEventListener and rightArrow. This fixed the issue :)

  • @userj-s2000
    @userj-s2000 ปีที่แล้ว

    Extensive ??? This was amazing

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

    Thank you🙂

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

    how i can make 1. 2. 3 4 section in 1 page after that then next other section like 5 . 6. 7 . 8 the next slide ?? can you make a video about that because You explain the content so clearly and efficiently

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

    Can you tell me how to do that how to additionally add to the carousel project functionality that section change automatically and with dots. Thank you for your help.

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

    Thanks, lesson well explained .
    Please how can I make the prev() only appear when hover on

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

    There's an issue with the dots or indicators. Whenever you reach the last slider and clic at the right or left arrows the indicator losses its selected class. The rest works perfect.

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

    thanks for the beautiful explanation but @ 13:17 line 10, please why is there + before sectionIndex.... slider.style.transform= 'translate(' 👉🏾+ 👈🏾(sectionindex)+ -25+ %)..... i know we use + to concatenate but its confusing as there is nothing before it. so my question is what is the + doing before(sectionindex)

  • @H-do8tr
    @H-do8tr 4 ปีที่แล้ว +1

    How can I make multiple texts sliders with one background?

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

    I did everything you have done here, i literally copied your code and it still didnt work ,epeciall when i had to click the right button to move it please any help

  • @dianasuzaimi5119
    @dianasuzaimi5119 3 ปีที่แล้ว

    I want to include more than 4 sections, but when I increase the number of sections, and associated values, the slide does not appear to move in sync. Could you give us an idea of how the code would work if we were to include N amount of sections?
    Thank you!

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

    Hi, I have a problem here. Please ANSWER
    So I want to upload pictures in each of the slider but right now, it is considering all 4 sliders as one single page and messing up the pictures. Can you please help me in a way that it consider all 4 sliders a different page and content of one slider doesnt appear on the other slider?

  • @legionsman7476
    @legionsman7476 3 ปีที่แล้ว

    Instead of clicking to scroll through how would you set an interval to scroll through each content? EX: it'll move to the next slide every 30 seconds, every 60 seconds, etc. ?

  • @tomsway1123
    @tomsway1123 3 ปีที่แล้ว

    Guys, can you help me? I cant found fail. Slider is function, but the dots dont work.When I'm on the fourth slide and click on the right, the fourth point does not remain white. To the left, the white dot does not work for each slide. Thank you for help.

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

    Which technology or libraries used in js bro? Whether it is native js or not?

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

    mine wont do anything. i already saved it but its still section1 section2 section3 section4
    this is so frustarting

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

    link in desc isnt working

  • @kp1976
    @kp1976 5 ปีที่แล้ว

    Why you don't use let instead of var and template strings (` `) instead of ' ' ?

  • @bikramchettri9405
    @bikramchettri9405 5 ปีที่แล้ว

    Thanks man

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

    Hello! I've seen this video and it helped me with part of my problem. Could someone help me? I did this slider from the video except that mine displays 3 slides each time and has text com it. So i want to add active class to the first slide on the left but through the control buttons without clicking on the slide. Someone could help me please? I would really appreciate!

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

    Utterly brilliant: you are a star!
    But it seems like the prototype doesn't exist anymore, and no comments are answered here.
    I hope you're OK. Where are you?
    But does anyone have the source code that I can use as a template?
    I'll type it out by hand if I need to, but having it handy would help me (and lots of others, I'm sure) a lot.
    Hope someone can dive in here...

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

    Hi! First of all, I would like to thank the author for sharing such useful tutorial!
    Does someone have a clue why is my javascript file not working with my HTML document? I regulary added to section of HTML document but somehow clicking on left and right arrows doesn't give any actions...

    • @jp57043
      @jp57043 4 ปีที่แล้ว

      same problem ? any solution.....

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

      @@jp57043 try moving your element at the end of body part of html

  • @amyshaeliu8838
    @amyshaeliu8838 3 ปีที่แล้ว

    Hello! Thanks so much for your tutorial. Especially the prototype link, as I'm not a coder/developer - just a hobby.
    I was wondering if it is possible to have more than one carousel on a page? I have Googled and they say you must define a new ID? Can you please explain if you can? :)

    • @amyshaeliu8838
      @amyshaeliu8838 3 ปีที่แล้ว

      @@FrontendTips I don't understand :( you should do another video!

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

    Do I have to download any third party module for this to work

  • @khuranasanjay
    @khuranasanjay 4 ปีที่แล้ว

    Hi... Could you please share the code for removing the left and right arrows in the first and last slide respectively... Off and on I have been trying but not reached anywhere... I am not a javascript guy but I liked this slider too much... It will be a great favour... Thanks...

    • @khuranasanjay
      @khuranasanjay 4 ปีที่แล้ว

      ​@@FrontendTips Thank you very much for your reply sir... Since the last 8 hours I am trying to solve with various hit and trials but not yet found a solution. I think I have tried this but could not get the result... Maybe some syntax error.. I shall try it again... Shall let you know on your email...

  • @fvgoya
    @fvgoya 5 ปีที่แล้ว

    Man, great!!! Just one question: Why not use UL/LI instead section? Thanks for that!

    • @fvgoya
      @fvgoya 5 ปีที่แล้ว

      @@FrontendTips I see. Thanks!

    • @juanguerra2376
      @juanguerra2376 5 ปีที่แล้ว

      @@FrontendTips thanks! Regards from Panama

  • @usayedd4409
    @usayedd4409 4 ปีที่แล้ว

    hey how do i make more than 1 of these on one page?

  • @ElHawary
    @ElHawary 4 ปีที่แล้ว

    If i can give you more likes I wouldn't hesitate! Thank you so much.

  • @heavydirtysoul1491
    @heavydirtysoul1491 4 ปีที่แล้ว

    you're good

  • @vantung2210
    @vantung2210 4 ปีที่แล้ว

    i want when i click rightarrow 1->2->3->4->1->2->... can you help me ?

    • @LedgeTurtle
      @LedgeTurtle 3 ปีที่แล้ว

      (sectionIndex < 3) ? sectionIndex + 1 : 0;

  • @shihab8123
    @shihab8123 5 ปีที่แล้ว

    useful

  • @bikramchettri9405
    @bikramchettri9405 5 ปีที่แล้ว

    one question how to go from last slide to first slide after clicking the buttons.waiting for the series

    • @bikramchettri9405
      @bikramchettri9405 5 ปีที่แล้ว

      @@FrontendTips Yeah loop/continous.

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

      @@bikramchettri9405 just change the else part to 0
      rightArrow.addEventListener("click", function() {
      sectionIndex = (sectionIndex < 3) ? sectionIndex + 1 : 0;
      setIndex();
      });

    • @matthiasfrey8246
      @matthiasfrey8246 5 ปีที่แล้ว

      @@ajayrawat5603 Thank you!! That helped me a lot!

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

    Good explanation. One of the best on TH-cam. However, it would be better if the code was a little less hard-coded.

  • @frankovPaladin
    @frankovPaladin 3 ปีที่แล้ว

    I love u.

  • @yunusalam1970
    @yunusalam1970 4 ปีที่แล้ว

    u need to zoom in in all of ur videos hard to follow this

  • @MiterasQuilting
    @MiterasQuilting 4 ปีที่แล้ว

    i would be better with real images