How To Create 3 Levels Of React Image Sliders - Beginner, Intermediate, Expert

  Рет қаралды 74,107

Web Dev Simplified

Web Dev Simplified

Күн бұрын

Пікірлер: 115
@nove1398
@nove1398 10 ай бұрын
I really appreciate videos like these, where we get to see it all from start to end. Personally, I believe building out small projects like this helps to teach many small important bits.
@MattHanes
@MattHanes 10 ай бұрын
This was excellent, I love how you included all of those accessibility features that are so often overlooked. I expected the aria-labels, but adding the content skipping was something I never thought about. A cool follow-up vid might be to show how to make the slider swipeable for touch users like on a phone or tablet.
@oscarh4066
@oscarh4066 10 ай бұрын
Great content, Kyle! Appreciate seeing the progress of the different versions of the slider.
@slinco65
@slinco65 10 ай бұрын
Kudos for adding the accessibility details. So many tutorials leave off this very important part 👍
@diogenespasqualoto
@diogenespasqualoto 3 ай бұрын
O nome do canal é WDS
@pedromenezes4013
@pedromenezes4013 10 ай бұрын
It's really cool to see accessibility on a tutorial. Also really liked the accessibility button tip inside dev tools!
@xav_624
@xav_624 10 ай бұрын
I really enjoyed the accessibility part. Very instructive content. 👍
@leosombra8708
@leosombra8708 7 ай бұрын
thank you. I'm from Argentina, and it's the first time I see your content, you're great. I recommended your channel to my friends
@developerpranav
@developerpranav 9 ай бұрын
The version 3 with accessibility touches is super helpful, I'd never have known anything beyond the version 2 until now. Thanks for the great tutorial, wanna get your Next.js course soon ❤
@user-qj4rr1rm8i
@user-qj4rr1rm8i 10 ай бұрын
Everything I need to know about the accessibility part. Thank you Kyle.
@goodtimeswerehad
@goodtimeswerehad 5 ай бұрын
Another brilliant video Kyle, thank you!
@jhontriboyke5534
@jhontriboyke5534 6 ай бұрын
The accessibility part is really amazing! thank you Kyle
@rico5146
@rico5146 9 ай бұрын
Great! One thing i just want to mention is that i think it is fine to only control z-index property of skip link button in this video. It seems that the button doesn't need to be squashed at all by setting each properties width and height by 1.
@danielwinkler1910
@danielwinkler1910 10 ай бұрын
insanely good tutorial, well done :D
@bobdpa
@bobdpa 9 ай бұрын
Lots of great info here. Thanks! 💯
@iamjvfs
@iamjvfs 16 күн бұрын
Really next level, thank you!!
@brainftv
@brainftv 9 ай бұрын
Thanks Kyle! The whole idea of rendering all the images to animate them more easily, never occurred to me! Elegant. Challenge to you and the rest of us: how would you make the images "drag" with the mouse, or in the case of mobile website drag with a touch event?
@user-vu9dl3vn7l
@user-vu9dl3vn7l 4 ай бұрын
Thank you so much for this helpful tutorial!
@benjaminfourgeaud7707
@benjaminfourgeaud7707 9 ай бұрын
As always, excellent tutorial ! The acessibility is a nice add-on feature no one thinks about. But the things that I am missing, is the scroll capability, to have that Slider work on mobile ... Hope you will cover that in a follow-up video ;)
@re.liable
@re.liable 9 ай бұрын
Nice. I expect to be coming back to this video a lot. Please do not take it down 🙏🏼 And many thanks for sharing I suppose I'll figure out next how to lazily load the images
@Veedsify
@Veedsify 9 ай бұрын
Everytime i think i know css, kyle comes up with features that makes me feel like a beginner again
@parmjeetmishra2
@parmjeetmishra2 9 ай бұрын
Well this was very complicated for me from the start. but finally i understand completely. Thanks
@jamesgriesedieck5116
@jamesgriesedieck5116 8 ай бұрын
thanks for the informative video! I would love to see an auto scroll feature as well!!
@xphstos_
@xphstos_ 9 ай бұрын
Images are inline objects and as such they align vertically with text baseline by default. In typefaces we have ascenders, baseline and descenders. Since by default the image aligns in baseline it leaves a small gap in its box model. You can either set the image as a block element and break that connection with type or set the vertical-align rule to middle.
@theisoj
@theisoj 10 ай бұрын
Thanks Kyle as always! 👍
@OcularLux59
@OcularLux59 Ай бұрын
Awesome straight forward video! I'd love to see if it's possible to make the transition from the start or end of the carousel content look like it's infinitely looping rather than quickly sliding to the opposite end.
@atanu_200
@atanu_200 10 ай бұрын
guorgous 😍, I haven't added this much accessibility features for my projects, but now I will add all this and grateful to you kyle for this. it's great to have this kind of content free on KZbin. Thank you Kyle....
@jacobrichard2342
@jacobrichard2342 3 ай бұрын
You are the best !!!
@yaroslavoz
@yaroslavoz 10 ай бұрын
Thanks, man👏
@jasongrant2366
@jasongrant2366 5 ай бұрын
my man never disappoints
@rdalert3
@rdalert3 10 ай бұрын
you have no idea how frustrated I am with ready to use sliders libraries, I always wanted to create my own component just never had the time. thank you very much 😍
@user-pd2ic5pd3z
@user-pd2ic5pd3z 9 ай бұрын
Nice. I really appreciated how clear and concise your instructions were. However, I was wondering if you could provide some guidance on how to make the slider slide infinitely instead of going back to the first slide.
@johncerpa3782
@johncerpa3782 10 ай бұрын
Excellent video
@DioArsya
@DioArsya 9 ай бұрын
amazing! :)
@imnikki00
@imnikki00 3 ай бұрын
Thanks kyle❤
@aakashsrivastava5557
@aakashsrivastava5557 2 ай бұрын
Great content
@shahzadasultan2456
@shahzadasultan2456 10 ай бұрын
Your content is what driving my career , Thank you Man😇
@Mauro0
@Mauro0 10 ай бұрын
Watch the video first maybe ?
@Trazynn
@Trazynn 10 ай бұрын
Teaching React this way is way more useful than all the abstract stuff.
@clevermissfox
@clevermissfox Ай бұрын
I was worried about the accessibility until i got to Slider 3! Shouldve had more faith❤
@solidsnake1120
@solidsnake1120 10 ай бұрын
I would LOVE a Firebase Realtime Database tutorial with that React Firebase Auth video you did!
@aqibmalik6313
@aqibmalik6313 10 ай бұрын
i admire ur content and wait restlessly for ur next video Love from kashmir, India Aqib Malil
@sagarchilivery6112
@sagarchilivery6112 10 ай бұрын
Love from India ❤
@anand_dudi
@anand_dudi 10 ай бұрын
Thanks for this masterpiece nd i have a suggestion if you could make videos on every react library functionality as SwiperJS provides same slider so it will help us to understand react in depth 😊 Thanks again
@jazzdestructor
@jazzdestructor 9 ай бұрын
Final Somebody with a proper accessibility video, i had to struggle so much to get this information previously (literally sat with react mui and kept checking why they used those labels there), if possible could you do video in depth about accessibility? The various other labels used. also in mui tab indexing when opening a modal takes you to modal fields, instead of the entire page behind i think they might be using content skip to go to the modal div, incase its something else do reply to this comment so that i could learn some new stuff. cheers🍻🍻👍👍
@Di-yes
@Di-yes 10 ай бұрын
30:00 Oh, man, please, can you tell me does aria label really works for section? Cause I really searched a lot, but only found that you can use it on and interactive elements only. Will be really grateful for answer. Thanks
@GabrielSoldani
@GabrielSoldani 10 ай бұрын
Nice video. One thing that is always missing though is when you have images with different aspect ratios. It’s surprisingly finicky to constrain the gallery to the viewport dimensions while respecting the image’s aspect ratio, not running into layout shifts while the image is loading, and adding padding and controls around the image instead of on top. Recently I wrote one and I still haven’t landed on a solution that plays nice with server rendering and renders correctly in slightly outdated browsers. It’s no wonder you can still find companies selling lightbox components with an expensive commercial license.
@WebDevSimplified
@WebDevSimplified 10 ай бұрын
This slider will deal with images that are not the same aspect ratio. If you wanted to use images that are drastically different (such as 9:16 and 16:9) then you would probably want to change how the CSS object fit is instead of using cover.
@mostafazieada3765
@mostafazieada3765 6 ай бұрын
Really 👍👍👍
@gliderguld
@gliderguld 9 ай бұрын
Great. But shouldn't left and right arrow trigger slide (when focus is within this group)?
@cogitativeCoder
@cogitativeCoder 9 ай бұрын
can you make a video on logging. like winston, ELK, EFK and frameworks please
@Matt23488
@Matt23488 10 ай бұрын
CSS needs a style property for making something hidden except from screen readers. It's kinda crazy you have to remember to do all of those things to make sure it behaves that way.
@mecozir
@mecozir 9 ай бұрын
test caller slow source validation with is element for dynamics passing should auto lock
@MirkoVukusic
@MirkoVukusic 10 ай бұрын
I think it's really necessary to add lazy loading of images and possibly also preloading the next one + blurred image placeholder while loading.
@Evil_E_ye
@Evil_E_ye 9 ай бұрын
Just use Image tag in next js😂
@MirkoVukusic
@MirkoVukusic 9 ай бұрын
​@@Evil_E_yeyes, it's one way of solving some of the issues mentioned, but not all. I.e. preloading next image (so swyping does not always end up with a loading indicator) needs to be programmed
@Evil_E_ye
@Evil_E_ye 9 ай бұрын
@@MirkoVukusic you are correct ✅ here.
@trade_wiser3144
@trade_wiser3144 2 ай бұрын
@@Evil_E_ye can you please explain, how it will work ?
@jasongrant2366
@jasongrant2366 5 ай бұрын
Ok so I wanted to implement this to my website, but i encountered a small but important issue... my images are stored in AWS, and you know the drill. When the a button of next or previous image is pressed, it takes too long to make a change, I don't want to optimize them as this is where only one will load at a time and will allow the user to view the image at it's finest, but what i do ant to do is show a spinner or something while the other image is requested. I tried const [loading, setLoading] = useState(true), but it's just not exactly what I need. If anyone has a solution, please let me know. Thank you!
@wkmgaming6097
@wkmgaming6097 4 ай бұрын
I want to fixed the dots number just like airbnb card slider means if i have 20 images i want to show only 5 dots and when the slide move the current dot is show how to do could not find any good solution?
@Wilespro1
@Wilespro1 5 ай бұрын
You should make a similar video but with an infinite carousel
@mecozir
@mecozir 9 ай бұрын
log in string allow app and load function decompiler item
@omobayodeosinubi1964
@omobayodeosinubi1964 Ай бұрын
This is great. can you add an auto slider to it?
@MrJacquers
@MrJacquers 10 ай бұрын
Very nice. How would it handle 100 images though? Guessing it would render far too many buttons :)
@muhsin8604
@muhsin8604 10 ай бұрын
Nice
@oh-digital
@oh-digital Ай бұрын
Autoplay would be a nice addition
@smithan3001
@smithan3001 Ай бұрын
Do have a video for adding autoSlide prop?
@mecozir
@mecozir 9 ай бұрын
overried template async tool view is context original error and platform code plugin
@25castro25
@25castro25 28 күн бұрын
Are you using Prettier to format on save?
@beinyourguard
@beinyourguard 10 ай бұрын
Kyle, how did you open that little menu box and imported useState at 3:09? what's the keyboard shortcut?
@MarvMarv397
@MarvMarv397 10 ай бұрын
I think „cmd“ + „.“ on mac. But when you hover over a not imported dependency, vscode should show you the shortcut in a popup.
@w1nd251
@w1nd251 10 ай бұрын
How do You format all the code in one click? What do You use?
@mecozir
@mecozir 9 ай бұрын
signals element process default change export before statement exit
@CodingSumo
@CodingSumo 6 ай бұрын
can anyone help me how to change image when user try to swipe on phone
@ThugLifeModafocah
@ThugLifeModafocah 10 ай бұрын
Thank you for the content. It would be awesome if you create content about material design 3 image slider (carousel). It has some very beautiful properties and behaviors. It would be cool to see it implemented with tailwind and react. Anyways, thanks.
@mecozir
@mecozir 9 ай бұрын
origanal task file width drag push
@magnuserikkeenrobot1117
@magnuserikkeenrobot1117 9 ай бұрын
How good is Image slideres like this for mobile @Web Dev Simplified?
@punch3n3ergy37
@punch3n3ergy37 10 ай бұрын
What about Sliders that contain images with different sizes? How would you handle that? Maybe you can do a video about that :)
@rico5146
@rico5146 9 ай бұрын
We can handle that problem by setting a property object-fit as cover on image. But the image aria outside the container boundary will be cliped.
@mecozir
@mecozir 9 ай бұрын
leaks tool entity does around
@sahilverma_dev
@sahilverma_dev 10 ай бұрын
and now I am waiting for advanced slider. 😎😎
@beinyourguard
@beinyourguard 10 ай бұрын
it's already advanced enough. less is more.
@w1nd251
@w1nd251 10 ай бұрын
it's not optimized like at all, try using 20 images, lagging.@@beinyourguard and i'm using 4k images, so it's really laggy
@bouwensr
@bouwensr 10 ай бұрын
Why do I never see a slider that mix portrait and landscape and allow to rotate
@AyoubRABIYAE
@AyoubRABIYAE 9 ай бұрын
❤❤❤
@GreenLikeGrass
@GreenLikeGrass 10 ай бұрын
should the dots really be aria-hidden, since they are interact-able?
@WebDevSimplified
@WebDevSimplified 10 ай бұрын
The buttons are the interactable thing (not the actual dot icons) which is why I hid the dots, but not the buttons.
@RishiRajxtrim
@RishiRajxtrim 10 ай бұрын
👍💯
@Randomguy48279xyz
@Randomguy48279xyz 9 ай бұрын
👍
@rickpatinor
@rickpatinor 10 ай бұрын
Is a great video! But, It will be nice to see how you set up the project in VSC. Everything is already created when you start the video. So I can't even begin to follow you...
@justsample9185
@justsample9185 10 ай бұрын
Personally, I find it confusing why you set translate on each image. IMHO, a better approach is to set the translate on single div wrapper around the images
@kokojolo
@kokojolo 3 ай бұрын
😘😘
@EvertJunior
@EvertJunior 10 ай бұрын
unfortunately this doesn't cover touchscreen users, it's not trivial to make a responsive slider specially if you need controls and track index, that's why I always use Swiper library but I wish this was browser native
@MirkoVukusic
@MirkoVukusic 10 ай бұрын
What I do is use scroll on images container div, instead of transition like in this video. Then you can do snapping and smooth-scroll with a few css lines. For touch screens, css touch-action is very simple and it works like that on mobile without any additional JS code.
@CWhitmer22015
@CWhitmer22015 10 ай бұрын
Amen, that is what I do now as well. All the scrolling is built in and most stuff is handled by the browser. I have stopped coding and using slider for this approach. Much easier for the user as well.
@johnmishell234
@johnmishell234 10 ай бұрын
I don't get how in 2023, you still have to code up an image slider yourself. Why is there no standard html element for ui elements like this? It just takes way too long to update html standards.
@curcodes
@curcodes 10 ай бұрын
U don't, they are a lot of libraries for that. But knowing how to build it for yourself gives you more understanding
@faizanahmed9304
@faizanahmed9304 10 ай бұрын
This proves how deep understanding you know about your tech. Knowing from ground level is the thing that separates a great developer from the average ones who just copy pastes the library code.
@josephmonyoro5129
@josephmonyoro5129 10 ай бұрын
Cause it’s fun
@johnmishell234
@johnmishell234 10 ай бұрын
Yes there are libs, but it's just ridiculous that there isn't say an html element in which you can nest . No standards, everyone codes up their own crappy versions and that's for nearly every ui element
@mantas9827
@mantas9827 10 ай бұрын
I thought the same, on the same note, how are we just now getting popovers?
@adenugbamicheal2140
@adenugbamicheal2140 10 ай бұрын
Pls simplify real world project
@fullstackprojects5615
@fullstackprojects5615 4 ай бұрын
idea copied from monsterlessons
10 Tailwind Classes I Wish I Knew Earlier
13:31
Web Dev Simplified
Рет қаралды 173 М.
How To Create The YouTube Home Page With Tailwind, React, and TypeScript
1:49:08
Nastya and SeanDoesMagic
00:16
Nastya
Рет қаралды 34 МЛН
Best KFC Homemade For My Son #cooking #shorts
00:58
BANKII
Рет қаралды 65 МЛН
A little girl was shy at her first ballet lesson #shorts
00:35
Fabiosa Animated
Рет қаралды 14 МЛН
БАБУШКИН КОМПОТ В СОЛО
00:23
⚡️КАН АНДРЕЙ⚡️
Рет қаралды 16 МЛН
How To Debug React Apps Like A Senior Developer
21:07
Web Dev Simplified
Рет қаралды 88 М.
Can I Create Netflix’s Video Carousel UI?
1:01:10
Web Dev Simplified
Рет қаралды 132 М.
Top 6 React Hook Mistakes Beginners Make
21:18
Web Dev Simplified
Рет қаралды 565 М.
Most Beginner React Developers Do This Wrong
13:47
Web Dev Simplified
Рет қаралды 228 М.
The Most Important Skill You Never Learned
34:56
Web Dev Simplified
Рет қаралды 182 М.
This is the Only Right Way to Write React clean-code - SOLID
18:23
How To Load Images Like A Pro
15:48
Web Dev Simplified
Рет қаралды 364 М.
CSS Anchor Is The Best New CSS Feature Since Flexbox
15:39
Web Dev Simplified
Рет қаралды 363 М.
Nastya and SeanDoesMagic
00:16
Nastya
Рет қаралды 34 МЛН