Can I Create Netflix’s Video Carousel UI?

แชร์
ฝัง
  • เผยแพร่เมื่อ 24 พ.ย. 2024

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

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

    its like you read my mind mate! been fascinated by carousels like the ones on disney plus and netflix and I finally get to see the best web dev channel have to go! love it

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

    32:35 referring own blog and finding out the solution tells us to we need to maintain our notes, I do it and push it to git :)

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

      I Agree. Started maintaining notes too.

  • @rayyan-munassar
    @rayyan-munassar ปีที่แล้ว +1

    Bro outsmart netflex with the button move. Well done that all I can say.

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

    You can use ::before and ::after on buttons you just forgot "" in the content property :)

  • @Me-sz7yy
    @Me-sz7yy 2 ปีที่แล้ว +7

    I really love your videos, I strongly believe that this way of teaching make it easier for us to learn how to solve problems from beginning to end, the amount of information that they have is so valuable... thanks a lot 😀😀

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

    32:32 that has to be the biggest flex i've ever seen in a tutorial

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

      Lol. You would be surprised how many times I reference my own blog to remember how to do things.

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

      @@WebDevSimplified bro..the amount of knowledge you have is just amazing..i wish one day i could solve problems like you..

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

    You should re-do this for react, would be interesting to see how you'd structure the components

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

      its really easy todo in React, im doing it at the moment, to chage the "--slider-index" you just "useState()" to chage it onClick of the handles, also using a "const numberOfImages = 9;" you can stop the over scroll just by using a bit of math, something like "setSliderIndex(prevIndex => Math.min(prevIndex + 1, numberOfImages - 4));" on the right click, that will always keep 4 images visable, its really simple to do. The whole page with HTML is about 45 lines of code. I'm also looking at using HTMX on the images as this will make them much more dynamic, also it will only load the images when called, so it makes the proformance really fast.

  • @Mike-tb2hw
    @Mike-tb2hw 2 ปีที่แล้ว +8

    These videos are 🔥!!! Keep it up Kyle! Love all the new tricks and troubleshooting tips watching your live videos. Especially debugging CSS

  • @0VexRoblox
    @0VexRoblox 2 ปีที่แล้ว +15

    For the infinite scroll is it practical to just clone the first four items in the container and append to the end, and when it's trying to move again remove the transition and set the current position variable to 0 and then add the transition back and then again set the current position variable to 1? Same logic for the left.
    Maybe cloning the children and appending them accordingly beforehand and just changing the left button and right button logic to what I mentioned would work?

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

    learning many tricks in 1 video , thank you sir for this content

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

    I'm going to have to try to implement this for my own site. Great video!

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

    Thanks dude! Was looking for a guide on this everywhere, super cool!

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

    I love this format. It muchmore educational to watch ur thinking. Be a project and working thru it creates a longer video, but muc h better to comprehend.😄

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

    More videos like this! That was great to watch!

  • @JustHusband-rl8lv
    @JustHusband-rl8lv ปีที่แล้ว +4

    I hope one day Kyle comes back on the wrapping feature as implemented by Netflix. It is a sort of infinite scroll, hope you can make an awesome video about that ; ) Thanks for all your great content!

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

    You are the best web dev youtuber

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

    Great work, man. Great work. I love your tutorials. I've watch many ready.

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

    You are an extraordinary talent, man. I would kill to have this level of knowledge and competence.

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

      Pretty simple, sit down your ass and learn

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

    I have been looking for this for such a long time!

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

    Nice video, for the html arrow on the left/right handle to be centered instead of using flex and text align and justify-content you can use padding-top : 5% padding-bottom : 5%

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

    I've been watching a few of your videos and what I like the most is how you explain things, very clear and easy to understand.
    About the Netflicks slider, I believe it has a popout when you click on a video that overflows over content below the slider, I could be wrong but I recall seeing that somewhere. If it does have one then I'd be interested to know how that could be done.
    I've tried to do it in sliders I've built using flexbox where the overflow-x is set to auto so that the slider will scroll horizontally and the overflow-y set to visible so that popout will overflow vertically but the overflow-y automatically gets set to auto if overflow-x is also auto.
    The only way I was able to do it was to make the slider wider or by making the popout absolute and positioning it with some JS. Although these solutions work, they come with their own problems. For example, making the slider wider means that it takes up more space, whereas making the popout absolute prevents the slider underneath from scrolling because the events get captured by the popout.

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

    I was thinking about this last night and now your video pops up, you're spying on me 😱

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

    Thank you so much!
    I was just thinking about what if we hit the last item on the slider and we want to back to the first slider item:
    my idea is we have to:
    - Convert the slider items to an Array(slidesArray)
    - Shift (or splice from the index 0) the amount of slides depending on the given (--items-per-screen) from the slidesArray
    - Push the shiftedSlidesItems to the slidesArray.
    and vice versa when it comes to the left handle click, pop the last items(poppedItems) from slidesArray, then unshift the poppedItems to begin of the slidesArray again.

    • @A.Dalton
      @A.Dalton ปีที่แล้ว

      easier solution for me i already did , make the sliderindex=0 when i equal a specific number you decide

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

    Had a project where this tutorial was just perfect. Definately learned a few new tricks. .-)

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

    Bro I was literally thinking about this two days ago, shot how u read my mind!

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

    These tutorials are amazing! Thank you very much

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

    Great content Kyle 👌

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

    Ok, I'm definitely interested

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

    Excellent Jedi K!
    🧠

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

    I wish I would have seen your this video before. Last month I implemented the same in an angular application it took around half a day for me

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

    Great work!

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

    I remember doing this in the first few weeks of webdev in university.

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

    You should give the DoorDash Slider component a shot - Its a responsive version of this that coordinates horizontal scroll with incremental clicks

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

    can you create paper ripple animation like youtube have when there's no internet there's a retry button and it flows from where the button got clicked and when you long press on it it goes slowly and when you double tap continously it doesn't have a delay it goes smooth like youtube have

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

    Its a nice approach to make slider. Again I was expecting to be able to scroll horizontal via magic mouse scrolling left and right. Normally with scrollbar its possible and also mobile friendly but hiding the scroll bar and making it horizontal scroll is chalangable.
    TH-cam horizontal menu looks perfect to me which support vertical scroll and horizontal scroll from magic mouse touch pad in both cases it container scroll horizontally. Another example would be facebook shorts slider. Its great.

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

    Hmm I think the main problem of the pseudoelements for the arrows was that the character wasn't wrapped around quotes. And of course, great video as always!

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

      no, wrapping it with quotes will render the string itself

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

    17:00 because you forgot to put the code in string !

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

      and from now I'll never forget it😃😃

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

    Thanks for this great video!

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

    keep making thses videos loved it 🔥

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

    What if there are 7 cards in the slider? There is 12 so it s good scenario but so you can click 4 times but what if there is 7 image cards?

  • @SydneyBrown-z5s
    @SydneyBrown-z5s 8 หลายเดือนก่อน

    There seems to be a problem when nesting flex boxes and defining flex-basis on child items. Browsers don't seem to allocate enough space in the parent flex container. At 42mins into the video Kyle is struggling with the progress bar items not fitting in the parent container and that's because there's an overflow. If he clicked on the flex button in dev tools then the overflow would have been obvious. In that case min-width is a workaround to make the child items fit inside the parent flex container. Also at 44mins Kyle changes the width of the progress bar items and he plays around with flex-basis which has no effect only min-width works. I'm wondering why nobody picked up on this issue and how many actually followed Kyle from the beginning to the end like I'm doing. Kyle has a tendency to talk fast and in some parts of the video he was modifying quite a few CSS rules without refreshing the browser. I've been following Kyle's tutorials for some time and have learnt a lot, however I do prefer watching Kevin Powell's videos because he takes his time and explains things thoroughly. He recently finished a video similar to this one but using HTML and CSS only. I hope Kyle takes my feedback as constructive.

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

    Maybe you could've tried playing with the slider's children's orders to emulate the wrapping. Let me explain:
    1st - There are two cases for this wrapping effect, one if the (# of items)/(# of items per screen) [let's call that groups] is < 5 and one if it is >= 5
    In other words an active group (the 4 displayed thumbnails in your example) should be surrounded by at least 2 groups on each side. So for #groups < 5 you'll have to create copies.
    2nd - Regardless of the copies created or not, each thumbnail should have an order, from 1 to 12 in your example. When the slider is shifted right, all the orders should be incremented by 1 except the last one that should get the value 1, or be moded mod12 (this way all the orders still range from 1 to 12).
    If the slider is shifted left then they should all be decremented by 1 and the first one gets the value 12, or gets moded mod12. This should accomplish the wrapping effect to some extent.

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

    The left/right arrow should have had flex direction as column to get it dead centre?

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

    As a newbie although having some understanding of js, I was completely confused with javascript code you provided.😅

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

    WOW, just WOW. you did the looping of the carousel like it was nothing while i'm still scratching my head around it while i'm typing this comment.
    If i may ask a small request?Can you add an event that when the user presses one of the pics, that pic whould show on the center of the screen on a different div??

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

      You'll need a click event listener that will set the image to position absolute and the different div will need to be set to relative.

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

    Top! Works seemlesly.

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

    first thing i see is you making sure every image is scaled right but i think the movies are required to send them in the right resolution size or the img itself is being scaled and not inside the code

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

    No one is always smart, no one knows everything, there are times when they know what is wrong but try to ignore it to avoid finding a solution for it.

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

    It's not fair. You're beautiful and smart. None of us have a chance

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

    Is it just me who didn't know about the aspect-ratio property ? Damn

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

      Yeah that's amazing

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

      its not fully supported though

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

    Amazing 👏

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

    thank u. This is great

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

    This is aesome!

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

    Big fan here! Hoping you redo this using react js

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

    I had this issue a while back it would have been a blessing if you had done this soone 😂😂

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

    If you do flex with a width and no grow you might as well do inline-block?

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

    Kyle, I want to watch this type of vdo. But these are too lengthy for me. Can have some different way? Or only solution is to Speed up playback?
    Thanks for amazing vdos.

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

    sliders are easy, just offset the container by width of cards

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

    this guy is insane..

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

    Do we need to specifically set box sizing to the *::before and after element?? Cause when I set the box sizing for *, in the inspect mode in chrome, it showed that the before and after of * are set to the same.

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

    I love 💕 this video 😍

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

    Every time I see people messing with CSS I praise the gods for tailwindcss

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

    I don't get why do I need to give the slider >img max-width if I have already gave flex 0 0 25% and only by that I'm "telling" the each image to be max 25% of the .slider container

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

    You just had to put the chevron code in quotes! "\203a"

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

    Has anyone found out how to insert actual videos and it still work? I've tried, and it works until the slider buttons disappear after it populates over what it initially holds without sliding it.

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

    what do you do about the gap when you have an uneven number number of slides though?

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

    Is it possible to use scroll snap for small screens then the left/right arrows for large?

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

    this is programmer's version of netflix and chill

  • @catafest-work
    @catafest-work 2 ปีที่แล้ว

    what snippets use you in this video tutorial for these 9 images tags? thank you for sharing.

    • @catafest-work
      @catafest-work 2 ปีที่แล้ว

      @@waternlava yes I found it. thank you for share !

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

    It doesn't seems to be working with iphone safari. I am guessing the issue is with that width not able to calculate.

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

    I made something similar using scroll and moving nodes around, instead of translate.
    Works beautifully in desktop and android, but iOS devices touch events won't allow me to adjust the scrolling while touch is being processed...
    like if (slide.scrollLeft == 0) {
    slide.insertBefore(lastItem, firstItem);
    // The following is being ignored by iOs devices
    slide.scrollLeft = firstitem.width;
    }
    Any thoughts on the matter would be greatly appreciated.

  • @Tony.Nguyen137
    @Tony.Nguyen137 2 ปีที่แล้ว

    Can you try to recreate airbnb‘s scroll animation

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

    Hi Bro thanks for the video, pretty awesome. But I got a problem maybe you can help me. When I try to implement a url in the images I lost the size configuration.

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

    dude you should have used bootstraps carousel function

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

    Please make it in Reactjs also.

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

    can you explain the flex that you used for .slider > img? I dont understand how that works.

  • @Michael-yp8zl
    @Michael-yp8zl ปีที่แล้ว

    being trying to recreate this with react
    and i am stuck on the logic for the active slider

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

    What if you wanted to move in one at a time, infinitely?

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

    i cant get the items to have the same height and the gap between them varies

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

    is there a wordpress plugin that can do this?

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

    why not use swiper lib instead?

  • @7heMech
    @7heMech 2 ปีที่แล้ว

    Yes.

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

    Which keyboard shortcut do you use to move the current line up or down?

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

      Ctrl + Alt + Up or Down Arrow, as far as I know

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

    i created a similar but even worse design.
    I have The same sliders are one for the category that moves by one field, the other by seven fields and the third by three.
    And I did it to handle all one function recursively
    and function for bullets
    the other problem is bigger, because there is a diver for everyone on the left side, which must not be seen at the beginning and end of the container.
    so it’s especially that it’s all responsive, horror

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

    Bootstrap?

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

    Coincidence? Kevin Powell 6 hours ago: th-cam.com/video/vpx8pQaaJ38/w-d-xo.html

  • @GabrielMartinez-ez9ue
    @GabrielMartinez-ez9ue 2 ปีที่แล้ว

    Currently building a react component using this + tailwindcss. Anybody successfully made it?

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

    getting rid off HTML and instead using only js to write it could easily solve infinite carousel problem.

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

    Please recreate this in React

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

    Love your videos and seeing how you solve problems. However, you say "essentially" so often, it's a little distracting haha.

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

    INFINITE SCROLL? 5/10 rsrsrs, how to do it god!!!

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

    😊😊😊

  • @Wade-vo6zx
    @Wade-vo6zx 2 ปีที่แล้ว

    I think you can not only create Netflix's video carousel but that you can do even much much better. Need to start believing in yourself and your own creativity already

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

    you're insane lolol

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

    👏👏👏👏🙏🙏🙏🙏👌👌👌👌🖖🖖🖖🖖🖖🖖

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

    Hmm I think the main problem of the pseudoelements for the arrows was that the character wasn't wrapped around quotes. And of course, great video as always!