Build React Image Slider From Scratch Tutorial

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

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

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

    WATCH NEXT: React Interview Questions and Answers - Dominate Your Next Interview - th-cam.com/video/yQHr4opz_N0/w-d-xo.htmlsi=51b2XP_84GH3q6oF

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

    This is exactly what I was looking for ! Most people use a library for their sliders, so it was pretty hard to find a pure react slider tutorial.
    Well explained, and simple. Thank you sir ! :)

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

    Perfect thank you so much ! I didn’t want to use any external library and this is exactly what i needed

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

    I am making photo album project using react and I was looking for the same thing to show images of my album. Thankyou so much for this video. It is really helpful.

  • @NiceChange
    @NiceChange 9 หลายเดือนก่อน +1

    You created a perfect video for devs, straight forward, easy to understand, easy to watch. Great work. This also made me chuckle because as you demystified the code, it became clear and excited to implement. Thank you.

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

    when you’re in the channel rack, click on gms to open up the gms nu, in the light blue screen on the top left look where it says

  • @LalitKumar-w7m8j
    @LalitKumar-w7m8j ปีที่แล้ว +3

    literally you're awesome. thank you so much dude

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

    Thank you for the tutorial, very clear and straight to the point

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

    with it in a few weeks or months if I pour enough ti and effort into it. I'll be watcNice tutorialng many more of your videos for tips and inspiration.

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

    I was about to use Bootstrap’s image slider component until I found this video! Thank you for your informative video ! Like and subscribed ❤

  • @ak-loz
    @ak-loz 2 ปีที่แล้ว +4

    Well done. Seriously.
    THANK YOU for making this simple and to the point.

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

    Great tutorial. Many thanks.

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

    BROTHER, YOU ARE THE BEST!!! You oooh really helped me!! THANK YOU VERY MUCH!

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

    Thank you, your tutorial is very easy to understand and that's perfect for React beginners like me!

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

    Excellent work, very clear and easy to understand. Thank you very much. I will keep watching your channel and will definitely recommend you.

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

    Unbelievably easy to follow. Great tutorial. Good and clean explanation. Thank you so much

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

    Brilliant. Simple and easy to understand.

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

    Thank you so much! I can not wait to start setuping. I want to create original soft for comrcials and shows alongside my many other

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

    confused when i downloaded and opened soft soft . I couldnt find any good and informative video for beginners to help

  • @viniciusm.m.7822
    @viniciusm.m.7822 2 ปีที่แล้ว +2

    THANKS, MAN!
    God bless you!
    Forte abraço do Brasil!!!

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

    finally someone who just shows how to make a slider without having to install a third party library, I find devs have become so lazy lately, installing libraries for every single new feature is such a bad practice in my opinion. Thanks for this tutorial

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

    Thanks for your easy to follow explanations, one step at a ti. It makes learning less overwhelming!

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

    🙏🏼🙏🏼 my guy saved me like 5 hours

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

    Thank you so much for the tutorial. This video was very useful for many of my projects. :)

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

    I took two months to learn Adobe After Effects and Premier Pro. Now I am learning soft soft to make soft so I can have more verity

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

    Without you, my soft wouldn't be possible.

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

    Thank you so much! Request you to please update this to animation slider so it moves smoothly back and forth

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

      Hi there is no planned updated to this video but I can recomment you to look on animations in css to implement that.

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

      @@MonsterlessonsAcademy Very Nice and concise tutorials

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

    great! about to find several slider in react and hard to customize but find solution from scratch!! awesome bro

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

    Thanku I was so worried becoz my slider is not working bur after watching your video it becomes simple plz
    Also make a video to add carousel in slick slider

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

    Great job!
    Neatly explained.

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

    Great Video but in my slider next arrow make problem .... after the third slide it is redirect to blank page...i donot know why ... i follow each and every step.

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

    How to replace url by src ? it is possible ?

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

    Thanks a lot for this awesome tutorial

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

    Thanks Monsterlessons, you did a great monster job here. I'll looking out for you videos.

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

    TNice tutorials is going in my helpful tutorials playlist.

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

    Don’t be afraid, just embrace it.

  • @-bongodrum-4963
    @-bongodrum-4963 2 ปีที่แล้ว

    Great tips!! I'll def check out more of your videos. Just started writing and making soft. I feel soft softs will help get to the next

  • @KirstenM-o8n
    @KirstenM-o8n ปีที่แล้ว

    This worked for me im using Create React App.
    For the image use the same url he uses and just replace the image name with the name of your image. That was the only thing i got confused about

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

    TNice tutorials was an amazing tutorial. You are a great teacher

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

    simple but very useful, this was the one of the best videos so far. Thanks)

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

      Thank you!

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

      There are so many best tutorials in Yt. It would be better if we can make the slider slide automatically. That's a more popular feature.

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

      @@robbinluo2810 yeap, but I've build that feature on my own

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

    If you're a complete beginner to soft production then soft is imo the easiest daw that you can get, I started off with it.. If you have a little bit

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

    This was one of the best tutorials i ever seen !! Thank you very much sir, i just subscribed.
    One last question, can you tell me which theme you use ? And if its available in vscode ?

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

      It's gruvbox. Yes it is available also for vscode.

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

    Thank you very much for this tutorial, Great work!

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

    Thank you very much for this tutorial, but I'd like to know how to make the carousel with imported images

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

    img url didn't render
    what should i do?

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

    const slideStyles = {
    width: "100%",
    height: "100%",
    borderRadius: "10px",
    backgroundSize: "600px 600px",
    backgroundPosition: "center",
    backgroundRepeat: "no-repeat",
    };

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

    A lesson in one breath, I thought you would be short of air. )) Great job! I spent so much time looking for dotted pagination with arrows. But as soon as I started to look for a slider with pics and arrows, I found your video. Thank you! Well explained.
    My like and subscription. Keep doing, sir!)

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

    concepts finally line up in my brain and...well, who knows? Maybe I'll be able to make sotNice tutorialng now.

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

    and i wish you good luck with your future endeavors ❤

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

    DUDE, I got so frustrated 'cause of that problem, thanks a lot!

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

    Thanks a lot. TNice tutorials video got started.

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

    Thanks! It is a very good tutorial 👍

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

    Really good content, just one question came to my mind. Why didn't you use a css file and className? I personaly find it more tidy and easier to maintain on the long run if I need to change something from the design perspective.

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

    Great really helpful n easy to understand

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

    You can't vicariously experience sotNice tutorialng through another person, the sa way you need to try it for yourself before losing hope.

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

    that's a called step solver! 🤩🤩🤩

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

    Thanks for the tutorial , it's really helpful.

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

    Thank you.
    Do you prefer in-component styling over a css external file?

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

    Thank you Sir! TNice tutorials helps alot !

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

    Thank you so much, man, saved me here

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

    Facing a problem. When I'm moving to next image initially a white screen appearing and then only the image is rendering

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

    Damn! Worked like a charm! Thank you soooo much!

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

    great tutorial.... Please is there a way for one to add some transition effect to the carousel?

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

      The advanced features in a slider comes as a new video soon. Stay tuned.

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

    Thanks this video is very helpful ☺️😊

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

    Thank you so much!!! Straight forward

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

    Awesome work! How do you build the same carousel but with autoplay? I want to build a ticker tape with infinite scroll/autoplay but with arrows

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

      Stay tuned, part 2 comes in 2 weeks.

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

      @@MonsterlessonsAcademy Thank you so much for this video tutorial. Looking forward to part 2 👍🏻

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

    I'm unable to access photos from local host, the error says this site can be react and local host refused to connect

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

    thank you soo much for this tutorial, i love your explaination

  • @Лемми-ц8ш
    @Лемми-ц8ш ปีที่แล้ว

    Thank you so much, you just saved me.

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

    Hi, excelent video! I followed this tutorial but my images from the url are not showing in the slider, what can I do?

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

    you are amazing man , but can i make it change photo auto with out click on arrow? and thank you again for this awesome video .

    • @MonsterlessonsAcademy
      @MonsterlessonsAcademy  3 หลายเดือนก่อน +1

      There is a link in the first comment to the second video which implements this functionality.

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

    Thank you! Here's a request from ! Can you please make a tutorial on how to record your actual tutorial and input your own soft

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

    THANK YOU SIR, YOU ARE FANTASTIC!!

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

    Thanks from Mali !

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

    you are awesome
    thank you so much!
    can you give more info about how to use ({slides})
    Its like straight props, without keyword props

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

      You are welcome! slides is just props which we destructure directly in slides variable.

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

      @@MonsterlessonsAcademy THIS MORNING I MANAGED TO DRAW A PICTURE USING THIS METHOD state.flickr_images.length - 1
      But the code is not saved and I'm trying all day to figure out how I did it
      ({STATE}) as a destructuring property
      now for some reason the image is not rendered no matter what i do
      Clarification: is the image being rendered here in your application? state.flickr_images.length - 1
      Thanks

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

    That was great, thank you!

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

    Thanks for this tutorial.
    Can you please tell me how to implement animation for this slider?

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

      The advanced features in a slider comes as a new video soon. Stay tuned.

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

    It worked! Tank you sir.

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

    Great content as always please in the future we need some angular mini projects and ideas please and thank you

  • @Monicaslessons-vt7hs
    @Monicaslessons-vt7hs 5 หลายเดือนก่อน

    big thanks its really usefull for me

  • @12stem-lamundaoruztomk.92
    @12stem-lamundaoruztomk.92 2 ปีที่แล้ว

    Will stay tuned to your channal! Cheers!

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

    I want to custom it like I display 3-4 Images in single slide, how can I do this ?

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

    Very very very useful thanks a lot

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

    awesome as always

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

    using soft, can't wait to get my hands on it.

  • @NikhilSingh-sl1cx
    @NikhilSingh-sl1cx ปีที่แล้ว

    Very helpful content.....Thanks

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

    Thanks. I wish you did it with separate css file.
    Apparently, is it all messed up when you (..me..) try.

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

      You are welcome!

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

      @@MonsterlessonsAcademy Well, I did found myself struggling in order to make it work, but I appreciate it nonetheless. Thank you.

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

    How to change color of below round buttons in accordance to the arrows clicked to show which image is selected?

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

    wow so clear and understandable thanks

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

    Hi there, nice tutorial. By the way, what is theme you are using?

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

    Thank you so much brother!

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

    Thank you for sharing your knowledge :)

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

    How to change your change your channel rack from Dub back to the original channel rack you have

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

    Great content, but can u pls show how to make slides autoplay.

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

      I tried with setInterval, setTimeout and useEffect, but there are some glitches.

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

      Hi I didn't try that but useEffect + setInterval should go. Or maybe useRef.

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

      @@MonsterlessonsAcademy Yeah that works, but if user manually clicks previous or next button, then autoplay won't work properly

  • @totalement-food
    @totalement-food ปีที่แล้ว

    thank you so much, great job

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

    GREATEST ONE EVER !

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

    Great video! I only want to ask, is there a way (without removing the arrows and goToNext or goToPrevious functionalities)
    to include a functionality for an automatic slider, so that each image can be shown for, lets say, 2 seconds and then it automatically changes to the next one? And if that can be done, in a way it suits you based on how you have built the whole thing, could you pls make an updated video for that?

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

    Will this be by default working swiping with a phone? Or just by clicking on the arrows?

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

      Clicking on the arrows with work on phone but swipe not. You need to add this functionality.

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

    Great tutorial! Really helped me create a slider from scratch! However, how do you make the dots active, so that the user knows which image they clicked on? For example, the dot that they click on turns red from black?

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

      you have an active index so just apply a class to the dot if the index equals active index

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

    Great tutorial , thx