Create Product slider or carousel with React.js | React.js Tutorial

Поделиться
HTML-код
  • Опубликовано: 21 окт 2022
  • In the current modern world of web development there are so much features and sections to add to websites. One of those features is 'carousel'.
    Sometimes you'd be asked by your client to add a carousel/product slider to their website or even you would want to add to your own projects.
    building a carousel may take time and give headache during the process. Thanks to the community behind 'React JS' and 'npm' to make a beautiful and functional carousel for us.
    Learn how to implement this amazing library in your projects in this video.
    Timestamps:
    00:00 Intro
    00:30 Install react multi carousel
    01:44 Import react multi carousel library
    03:50 Design Product card
    07:22 Create Product component
    08:46 Explain responsive object
    11:43 Create productData array
    14:07 Map over productData array
    15:20 send data through props
    18:23 Create data.js
    20:30 Add some features to carousel
    ________________________________
    GitHub link of this project 👇:
    github.com/MuhammadFRZN/react...
    ________________________________
    My GitHub 👇:
    github.com/MuhammadFRZN
    My gaming channel 👇:
    ruclips.net/channel/UCRoM...
    My Dribbble profile 👇:
    dribbble.com/MuhammadFRZN
    My Instagram 👇:
    muhammadfar...
    My Twitter 👇:
    frzn_hydari
    ________________________________
    Who is MFH (Muhammad Farzan Haydari)?
    A web developer, UI/UX and graphic designer who is bachelor in computer science. I have to mention that I learned UI/UX and graphic designing all by my self (you can call me self taught UI/UX and graphic designer).

Комментарии • 98

  • @sophia_mary_r7914
    @sophia_mary_r7914 Год назад +2

    You are a life saver! Thanks a lot for the video!

  • @akenjinicole1499
    @akenjinicole1499 5 месяцев назад +2

    Exactly what iv been looking for. Thank you

  • @mariangeldiazvillanueva283
    @mariangeldiazvillanueva283 Год назад +1

    You are a genious! Thank you very much for the video!

    • @mfhcodinganddesign
      @mfhcodinganddesign  Год назад

      Glad you liked it. Please don’t forget to keep supporting 😊

  • @slsabilkamal1942
    @slsabilkamal1942 10 месяцев назад +1

    it was GREAT , thank you

    • @mfhcodinganddesign
      @mfhcodinganddesign  10 месяцев назад

      You’re most welcome 🙏 please keep supporting 😊

  • @bhaviljainnnnnnn
    @bhaviljainnnnnnn 2 дня назад

    Great Video.......................................................................................

  • @avishekraut7948
    @avishekraut7948 9 месяцев назад +1

    Thank you! This help me a lot.

    • @mfhcodinganddesign
      @mfhcodinganddesign  9 месяцев назад

      You’re most welcome 😊 keep supporting please 🙏

  • @hacistein
    @hacistein Год назад +1

    its realy amazing work from scratch to end, easy and pure. i subs your channel. Nice to meet you realy m8^^

  • @user-if4nd6cx7o
    @user-if4nd6cx7o 7 месяцев назад

    Great video thanks very much

  • @Abukar_Moalim_Mokhtar
    @Abukar_Moalim_Mokhtar 10 месяцев назад +1

    Thanks brother, you helped me a lot❤🎉

    • @mfhcodinganddesign
      @mfhcodinganddesign  10 месяцев назад

      You’re most welcome 🙏 keep supporting please

  • @Nanashi-rq7lk
    @Nanashi-rq7lk Год назад +1

    Great tutorial. Very Useful

  • @learn-with-lemon
    @learn-with-lemon 7 месяцев назад +1

    Thank you.

  • @katerinamozhaeva8885
    @katerinamozhaeva8885 4 месяца назад +1

    Thank you! Really helpfull!

  • @aluuman
    @aluuman 6 месяцев назад +2

    Thankyou Sir .. Love from INDIA

    • @mfhcodinganddesign
      @mfhcodinganddesign  5 месяцев назад +1

      You’re most welcome ☺️ keep supporting please 🙏

  • @alejogaitan9602
    @alejogaitan9602 3 месяца назад +1

    Geniooooo, me re sirvio, estaba renegando con el carrousel de boostrap para darle a las card las propiedades de firebase y no podia hacer que funcione correctamente, con este componente solucione mi problema! GRACIAS!

    • @mfhcodinganddesign
      @mfhcodinganddesign  3 месяца назад

      Glad to know that. Don’t forget to subscribe please 🙏

  • @ashishpathak840
    @ashishpathak840 3 месяца назад +2

    best slider video in whole utub

  • @TrailerSync
    @TrailerSync 8 месяцев назад +1

    Thank you

  • @Quest4Motivation
    @Quest4Motivation 8 месяцев назад +1

    superb

  • @saitah
    @saitah Год назад +1

    Thankyou, super helpful

  • @g.tirumala5317
    @g.tirumala5317 Месяц назад +1

    👍 thank you sir

  • @undisputedlegend7568
    @undisputedlegend7568 3 месяца назад +1

    Thank you so much Bro❤. This helps me alotttt.

    • @mfhcodinganddesign
      @mfhcodinganddesign  3 месяца назад +1

      I’m really happy to know it helped. Thank you for your appreciation. Don’t forget to subscribe please

    • @undisputedlegend7568
      @undisputedlegend7568 3 месяца назад +1

      @@mfhcodinganddesign Sure

    • @mfhcodinganddesign
      @mfhcodinganddesign  3 месяца назад

      @undisputedlegend7568 thank you very much. I really appreciate it 🙏

  • @khantradingsniper6422
    @khantradingsniper6422 Год назад +1

    Great video. keep it up

  • @ankitchopra6393
    @ankitchopra6393 Год назад +1

    Thanku brother ..... it makes too much help for me ....

  • @mmnvd
    @mmnvd Год назад

    thank you sir!

  • @SasinduKavishka-hj5jz
    @SasinduKavishka-hj5jz 2 месяца назад +1

    wowww best

  • @mohamednabih3972
    @mohamednabih3972 3 месяца назад +1

    thanks brother that's really very usefull for me

    • @mfhcodinganddesign
      @mfhcodinganddesign  3 месяца назад

      Thank you so much for complement 😊. Keep supporting please 🙏

  • @EmonicVampire
    @EmonicVampire Год назад +1

    how to add gap between cards? i tried to put css on sliderClass and it worked but it breaks the card sliding where the last card on the right not appear fully. it appears only half of it and its already end of slide.

    • @mfhcodinganddesign
      @mfhcodinganddesign  Год назад

      You may take a look at the “responsive” object.
      There you can set amount of cards related to viewports (mobile, tablet, desktop, super large desktop) measuring by pixels.

    • @EmonicVampire
      @EmonicVampire Год назад

      @@mfhcodinganddesign yeah checked. Doesn't mattet how many cards i showed if i add gap the result is the same. i also have tried adding padding right to the card instead of gap on the slider. it works but the result not good enough. Also i've tried modify it directly on the rect multi carousel but its not working.

  • @antoninosartori
    @antoninosartori Год назад +1

    Great video! thank you! Is there some props or way to select an current image and then move the slide ?

  • @dhaneshsingh3468
    @dhaneshsingh3468 Год назад +4

    Bro I can't see anything on my web page plx help me I done same as u did by I can't see anything I added CSS file also them why plz help me

    • @mfhcodinganddesign
      @mfhcodinganddesign  Год назад

      I'm sure you missed somewhere. If you would provide me the error message in case if you are receiving one, then I'd be able to help 🙂

    • @rajitdutta9837
      @rajitdutta9837 Год назад +1

      @@mfhcodinganddesign I too cant see anything, I have installed react-multi-carousel just as u have shown, but its displaying me nothing on the web page

    • @inzendis
      @inzendis Год назад

      @@rajitdutta9837 Gotta do width with some value and height: full in a div parent

  • @Jai-xq5hi
    @Jai-xq5hi Год назад +1

    Very helpful video

  • @ezetenduwilliams7322
    @ezetenduwilliams7322 Год назад +1

    Thanks.. 👍🏾

  • @AbhishekKumar-yt2gb
    @AbhishekKumar-yt2gb Год назад +1

    thanks bro its helps a lot ....😊😊😊😊

    • @mfhcodinganddesign
      @mfhcodinganddesign  Год назад +1

      You’re most welcome 🙏 and thank you for your supports

    • @AbhishekKumar-yt2gb
      @AbhishekKumar-yt2gb Год назад

      @@mfhcodinganddesign i need one help bro when i scrolling the page the react-carosel left and right arrow is coming to navbar ..... plz bro can you help me

    • @mfhcodinganddesign
      @mfhcodinganddesign  Год назад

      Increase z-index of your navbar to bring your navbar in front of carousel buttons

  • @thelightoffight7881
    @thelightoffight7881 Месяц назад +1

    thanks

    • @mfhcodinganddesign
      @mfhcodinganddesign  Месяц назад

      You’re most welcome 😊 please don’t forget to subscribe 🙏

  • @madhanraj7025
    @madhanraj7025 Год назад

    Hi buddy thanks a lot. This video really helped me. Could you also please share the CSS for this corresponding video

    • @mfhcodinganddesign
      @mfhcodinganddesign  Год назад

      I’m really glad to hear that. I’m looking forward to create some awesome videos including CSS so please keep supporting 🙏

  • @JoaoPedro-kp7zd
    @JoaoPedro-kp7zd Год назад +1

    Hello! Is it possible to edit the buttons that are used to pass the carousel items?

    • @mfhcodinganddesign
      @mfhcodinganddesign  Год назад

      Yes. Take a look at the documentation on the website shown in the video

    • @JoaoPedro-kp7zd
      @JoaoPedro-kp7zd Год назад +1

      @@mfhcodinganddesign I read it but I couldn't understand it very well, I just needed to change the background color of the buttons, leave something like black for example, is that possible?

    • @mfhcodinganddesign
      @mfhcodinganddesign  Год назад

      It’s not that difficult, if you take a look at the documentation once again in the custom arrows section, you only have to copy the code and then return your custom button after “return” keyword

    • @JoaoPedro-kp7zd
      @JoaoPedro-kp7zd Год назад +1

      @@mfhcodinganddesign Hey, Muhhamad, I did it!! Thank youuuu!

    • @mfhcodinganddesign
      @mfhcodinganddesign  Год назад

      @@JoaoPedro-kp7zd you’re most welcome. And please keep supporting 🙏

  • @KyleCorpuz
    @KyleCorpuz Год назад +1

    but everytime i call the class name in the css it wont take effect ( I have used tge correct path)

    • @mfhcodinganddesign
      @mfhcodinganddesign  Год назад

      does your CSS style your pages at all or not? if not, then there is a problem importing your CSS file or linking your CSS file into your "index.html"

  • @Tellit_TV
    @Tellit_TV Год назад +1

    God bless you

  • @sohanshet5674
    @sohanshet5674 3 месяца назад +1

    Your Github link does not work, where can I get this code from?

    • @mfhcodinganddesign
      @mfhcodinganddesign  3 месяца назад +1

      This is the link in case the link in the description doesn’t work. Don’t forget to subscribe please
      github.com/MuhammadFRZN/react-multi-carousel

    • @sohanshet5674
      @sohanshet5674 3 месяца назад +1

      @@mfhcodinganddesign Thanks, bro! I really appreciate the quick response.😊

    • @mfhcodinganddesign
      @mfhcodinganddesign  3 месяца назад

      You’re most welcome 😊

  • @hariharibolll3459
    @hariharibolll3459 Год назад +2

    Thanks brotha, Hare krishna

  • @antoniojunior3488
    @antoniojunior3488 Год назад +1

    what if i've to use pictures from local system?

    • @mfhcodinganddesign
      @mfhcodinganddesign  Год назад +1

      Add your pictures to public folder then easily include their location into your carousel

  • @wearelearners6023
    @wearelearners6023 Месяц назад +1

    I want to create it without use any library make a video plz

    • @mfhcodinganddesign
      @mfhcodinganddesign  Месяц назад

      That’s a good idea, but if you’re trying to accomplish a project, using a library is a very good option. But I’ll try to make another video to make it without any libraries. So please subscribe to my channel to be updated of the contents.

  • @philippeoffermans7949
    @philippeoffermans7949 Год назад

    Why don't you make a data file and just export it, you don't have to pass any props

  • @user-pn3fl1hz5h
    @user-pn3fl1hz5h 7 месяцев назад +1

    i need to decrease the z index of carousal arrow please someone help me ........

    • @mfhcodinganddesign
      @mfhcodinganddesign  7 месяцев назад

      Well, I recommend you to not try to change the z-index of the arrows but instead, increase z-index of your other elements (drop-down menu, navbar...)

    • @aathiqahamed7479
      @aathiqahamed7479 7 месяцев назад

      Problem is iam using autocomplete map package in that that also 1000 z index that's the probelm😢

    • @mfhcodinganddesign
      @mfhcodinganddesign  7 месяцев назад

      @aathiqahamed7479 and what exactly is “autocomplete map package” ?

  • @RajparaRidhdhy
    @RajparaRidhdhy 25 дней назад

    Eski css kaha pe hai?

    • @mfhcodinganddesign
      @mfhcodinganddesign  24 дня назад

      You can add your own styling. Although you can download the entire project files from GitHub
      github.com/MuhammadFRZN/react-multi-carousel

  • @williamguerrero5616
    @williamguerrero5616 Год назад +1

    🌟 𝓹𝓻𝓸𝓶𝓸𝓼𝓶