React Image Slider with Swiper JS from scratch

Поділитися
Вставка
  • Опубліковано 18 жов 2024

КОМЕНТАРІ • 57

  • @imuentinyannosarumen9789
    @imuentinyannosarumen9789 2 роки тому +13

    Wait... this guy has just over a hundred subscribers?
    with how excellently you make this tutorials?
    This is like the first tutorial I have ever come across where I have coded along as was taught and ended up with the exact same results as in the tutorial without errors.

  • @123gorem
    @123gorem 2 роки тому +3

    For those of you looking at this and wondering why not the css imports are working. For swiper ^8.3.2, the imports in a Create-React-App project work this way ->
    import 'swiper/swiper-bundle.css'
    import 'swiper/modules/navigation/navigation.min.css'
    import 'swiper/modules/pagination/pagination.min.css'
    import 'swiper/modules/scrollbar/scrollbar.min.css'

  • @catagreendevil
    @catagreendevil 2 роки тому +1

    I was struggling with creating a carousel for quite some time and couldn't get it done. You just fixed my problem in under 20 minutes. Great video man and thank you!

  • @GarmrZero13
    @GarmrZero13 2 роки тому +1

    Major thanks to you! This video saved me from one big headache! I didn't understand Swiper was built all modular-like. Once you explained that I got my slideshow to work. U are a lifesaver!

  • @jerrellmarvel5368
    @jerrellmarvel5368 2 роки тому +1

    Great tutorial, i know your channel will blow up soon !!!

  • @emmanuelessien8286
    @emmanuelessien8286 Рік тому

    Thanks for this illustration man, it has helped in the project i'm building

  • @tundeoke7945
    @tundeoke7945 2 роки тому +1

    WoW 😘😘😘 thanks a bunch. Great video.

  • @oatie4262
    @oatie4262 Рік тому

    thank you so much for this, really appreciate the details and intuition!

  • @gifhary2134
    @gifhary2134 Рік тому

    lol, you're fun! great tutor, man. keep it up 🍻

  • @kolbecrypto2976
    @kolbecrypto2976 2 роки тому

    Hey bro u deserve much more subscribers and views , keep the great work❤👌

  • @NarcisMM
    @NarcisMM 2 роки тому

    This was a v good explanation. Answered some of my questions.

  • @ArtyomManokhin
    @ArtyomManokhin Рік тому

    Cool. Thank you. you really helped me

  • @achrafgarai6621
    @achrafgarai6621 Рік тому +1

    Amazing tutorial, thanks

  • @S3niffer
    @S3niffer Рік тому +1

    Thanks, You saved me

  • @oscar_cyou
    @oscar_cyou 2 роки тому +1

    Very good explanation man 👍

  • @Hasansaid51
    @Hasansaid51 2 роки тому +1

    Thank for explaining how to customize the arrows. I was going crazy trying to figure that out smh. I was very close to making it work then I threw away my code hahaha. Imma try it again today

  • @markwasfy9230
    @markwasfy9230 2 роки тому

    bro you are a life savior

  • @OmarElmasry1
    @OmarElmasry1 2 роки тому +1

    great video 👍

  • @abdullahelganady5819
    @abdullahelganady5819 2 роки тому

    that was perfect explain

  • @yasinnabi
    @yasinnabi 2 роки тому +1

    Very educational and wonderful channel, thanks for sharing. thanks Subbed and liked. a fellow creator,,

  • @abdullasahamd7369
    @abdullasahamd7369 2 роки тому

    Thanks

  • @2010giant
    @2010giant Рік тому

    All developers derserve to have sass

    • @thedigitalceo
      @thedigitalceo  Рік тому +1

      All developers have their sass kicked by pms 😂

  • @dozadetrezire7455
    @dozadetrezire7455 Рік тому +1

    This is amazing! But what if I want to use React icons instead of images? How can we achieve this?

    • @thedigitalceo
      @thedigitalceo  Рік тому

      That’s a good question. I don’t know if it’s possible with swiper js. But it might be as easy as wrapping the react icon in a div and use the div classname of that div wrapper to pass to the swiper navigation reference in the video. We should test it out

  • @facundostorino2327
    @facundostorino2327 Рік тому

    Awesome! thanks, Now you can make a swiper with more swipers per view? and without errors..

  • @Webbi_Trax
    @Webbi_Trax Рік тому +1

    Great Content. Thanks.
    I have a problem though;
    I get this error: "TypeError: Cannot read properties of undefined (reading 'init')"
    the error refers to this line: swiper.navigation.init()

  • @mindaugasjukna4232
    @mindaugasjukna4232 2 роки тому

    Thanks for the tutorial, you have a github for this?

    • @thedigitalceo
      @thedigitalceo  2 роки тому

      I believe I never made a GitHub for this one. I started doing that for the more recent tutorials

    • @mindaugasjukna4232
      @mindaugasjukna4232 2 роки тому

      @@thedigitalceo I have done exactly as in the video yet my arrow buttons don't work :(. So would have loved to take a peek

  • @allone258
    @allone258 2 роки тому +1

    if u hate the uggly blue..

    • @thedigitalceo
      @thedigitalceo  2 роки тому +1

      Thank you for sharing that snippet! I also covered my thought sim the video. Yeah I truly dislike that blue it ships with 🤣

  • @nizabk
    @nizabk Рік тому

    The arrows still doesn’t work for me when I added the onInit

  • @lvrsvid
    @lvrsvid 2 роки тому

    How is this working without importing React from 'react'; ?
    Also, is there any reason the navigation arrows aren't showing up at all and the slides aren't transitioning automatically?

    • @thedigitalceo
      @thedigitalceo  2 роки тому +1

      It’s not needed explicitly here because I’m using NextJS which takes care of all that on compile. Also since React 17 it’s also no longer need in each component, only the main entry point. I’m not sure what you mean by the slides not working. In the video? Or in your own setup you’re doing following along with the video?

    • @lvrsvid
      @lvrsvid 2 роки тому

      @@thedigitalceo Well that’s good to know, I’ve been importing it incorrectly to each component, good to know. WRT the slides not working: I figured it out. I had a simple syntax error, I was way too tired to be coding. Haha

  • @andersonalmeydat7715
    @andersonalmeydat7715 2 роки тому

    when I deploy to a host, the url in the background-image: url(/path/myimg...) doesn't work, nextjs changes the url on deploying and my css sends notfound :(

    • @thedigitalceo
      @thedigitalceo  2 роки тому

      The images can be placed in a folder inside the public folder and then the link to an image for example would be /images/xx.jpg

  • @Mukuthasan
    @Mukuthasan 2 роки тому

    Why don’t you use image component from next?

    • @thedigitalceo
      @thedigitalceo  2 роки тому

      I definitely do! I left out here just to focus on the slider component. But we should definitely be using the Image component with Next! Thank you

  • @eshw23
    @eshw23 2 роки тому

    Does this work for videos to?

    • @thedigitalceo
      @thedigitalceo  2 роки тому

      Yes it will. Anything in the swiper slide element is fine. Swiper will Just make the elements slide no matter what’s inside. Although keep in mind with video you will probably have to custom code pausing and playing the video on each slide. Swiper js has an api for those things in their documentation

  • @suvarneshkm4845
    @suvarneshkm4845 2 роки тому

    how about the pagination ?

  • @pablowbk
    @pablowbk 2 роки тому

    Great video. Helped me a lot. Gotta be honest, your youtube handle threw me off and almost didnt watch the video (maybe I have an issue with the word CEO, sorry). keep it up man

    • @thedigitalceo
      @thedigitalceo  2 роки тому

      What do you mean lol. What did it say?? 😕

    • @pablowbk
      @pablowbk 2 роки тому

      @@thedigitalceo nothing important, it is just me not liking the word CEO. Your content is dope 👍

    • @thedigitalceo
      @thedigitalceo  2 роки тому +1

      @@pablowbk ah got you. Maybe I’ll come up with something better. It was there before I started my coding videos

  • @allansolitei1386
    @allansolitei1386 2 роки тому

    why does home.module.scss not working

    • @thedigitalceo
      @thedigitalceo  2 роки тому

      Which part of the video? Check the case sensitivity of the file name and the reference