Responsive Slider | Swiper Slider 3D-Coverflow Effect React JS

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

КОМЕНТАРІ •

  • @priyanshmishra404
    @priyanshmishra404 Рік тому +64

    i have update for SWIPER package
    import { EffectCoverflow, Pagination, Navigation } from 'swiper'; this will not work in recent version you have to add this instead
    import { EffectCoverflow, Pagination, Navigation } from 'swiper/modules';

  • @earnstein7607
    @earnstein7607 Рік тому +9

    Yall should not be mean in the comments, if it's not working for you then ask properly and stop throwing tantrums. If it's easy why not just build it yourself and not come to youtube?. Thank you for the video, don't let these little thinker people stop you from doing what you do for people for free.

    • @codsfli
      @codsfli  Рік тому +4

      For people like you I still make videos. Many Many Thanks for your support 🥰

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

      @@codsfli really appreciate. I've been looking for inspiration to build a carousel for a project I'm working on and you've really helped me with that.

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

      Thanks 🥰

  • @thiernodem5681
    @thiernodem5681 10 місяців тому +7

    For anyone who's having issues, know that this video's codes works fine, you just don't have the right imports for the swiper since it's been updated overtime. So, instead of importing swiper like Swiper like this import {Swiper, SwiperSlide} from 'swiper'; do this import {Swiper, SwiperSlide} from 'swiper/react'; and for the Navigation and Pagination do this import {Navigation, Pagination, Scrollbar} from 'swiper/modules'; because they are inside the modules package

    • @codsfli
      @codsfli  10 місяців тому +2

      Thanks for you valuable information 👍

    • @AliGamerxdzostawsuba
      @AliGamerxdzostawsuba 5 місяців тому

      or just use typescript

  • @npx_riff_lift-g
    @npx_riff_lift-g 7 днів тому +1

    Swiper's documentation is very annoying to deal with. So I appreciate you uploading this; it helps a lot with grasping their intended workflow.

  • @juanse_velasquez9831
    @juanse_velasquez9831 Рік тому +5

    Thank you for the tutorial!
    For the ones using typescript. I think the correct way to write the navigation attribute of the Swiper Component would be:
    navigation={{
    nextEl: '.swiper-button-next',
    prevEl: '.swiper-button-prev',
    enabled: true
    }}
    and not
    navigation={{
    nextEl: '.swiper-button-next',
    prevEl: '.swiper-button-prev',
    clickable: true
    }}
    Both approaches work, but according to the source code the interface NavigationOptions includes "enabled" but not "clickable".

    • @codsfli
      @codsfli  Рік тому +2

      Thanks for sharing your knowledge. many many thanks, bro.

  • @8koi245
    @8koi245 Рік тому +3

    Sheesh looks lovely in the start, can't wait to see who it was done

  • @RamiroRojasP
    @RamiroRojasP Рік тому +5

    Thank you very much!!!! I struggled a bit but finally could make it. my page only showed the images on the right but not on the left...
    I had to put !important in the .swiper-slide class in the CSS and that solved my problem

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

      Glad it helped!

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

      thank you ! your comment saved me :)

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

      can you help me with that please?

    • @yerson8119
      @yerson8119 7 місяців тому

      si! Tienes mucha razón

  • @visualgraphics2235
    @visualgraphics2235 Рік тому +5

    I always learn something new from your videos.👌

    • @codsfli
      @codsfli  Рік тому +3

      Glad to hear that!

  • @matiasvargas1729
    @matiasvargas1729 Рік тому +4

    Wow!
    That is a pretty cool slider

  • @israelabaho3978
    @israelabaho3978 Рік тому +3

    Hi, thanks for the good job - i have a question, how did you enter the image numbers from 1-7 whats the short cut to enter > and the number auto increments?

    • @codsfli
      @codsfli  Рік тому +3

      install text pastry extension. ctrl+p to search the test pastry and click. Thanks for comment.

  • @itchyJaw
    @itchyJaw Рік тому +2

    if you have existing website and wanting to add this just remove the html zoom part so it wont enlarge your existing page and 1 more thing remove the scrollbar thumb so the scroll thumb on the right wont look odd.

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

      did already but the gap between images is huge, how to adjust that???

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

    thank you. worked in my next js project, just had to scale the images down and change the swiper import like someone suggested in the comment section.

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

      Fantastic!

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

      How did you add the scripts they used in the beginning of the video? Next js does not have any html file and I can't figure out how to use the scripts.

  • @singhvimlesh
    @singhvimlesh Рік тому +3

    I want show only three images so how can I move same like yours but for three imaged.

    • @codsfli
      @codsfli  Рік тому +2

      only add this three ::

  • @sugamphirke8637
    @sugamphirke8637 Рік тому +3

    How can I make the middle slide to stay on by default. If I have total of 9 slides I want the 5th one to be on top(by default), while 4 on right and 4 on left.

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

      swiper js, I think not to have these options. thanks for the comment.

  • @hariharamanibalan4801
    @hariharamanibalan4801 Рік тому +4

    font size 62% is applied to whole project
    if I remove that img become bigger
    If I am trying to apply to .swiper-slide img it wont works

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

      Use font-size in .swiper-container

  • @frishera
    @frishera Рік тому +2

    why I can’t see the previous and next pictures, but only the current one?

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

      You should change the Slide image size.

  • @dionnellriquelme21
    @dionnellriquelme21 9 днів тому +1

    nose si me puedes ayudar, pero al usar tu codigo, en la pantalla de mobil tengo una franja blanca que sobrepasa el html, nose si sabes solucionarlo y si me puedes ayudar lo agradeceria
    I don't know if you can help me, but when I use your code, on the mobile screen I have a white strip that goes over the html, I don't know if you know how to solve it and if you can help me I would appreciate it.

    • @codsfli
      @codsfli  7 днів тому

      Re-start the project, I hope it will work 👍

    • @npx_riff_lift-g
      @npx_riff_lift-g 7 днів тому

      Check your dev tools; watch for changes between the mobile size and desktop size to isolate where the error is occurring. Report back when you've identified the problem; I'll try to help.

  • @melaniebrown9633
    @melaniebrown9633 7 місяців тому +2

    Thank you very much, it worked! How do I hide the following slides so that only the previous ones (left) are visible?

  • @thamismedina6394
    @thamismedina6394 Рік тому +3

    I made something very similar in vue 3, but there something i could pull of, i wanted to grow the card in the center if i double click on it, i tried to set out with classes but i could pull of, do have any tips for that?

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

      first select active slide then add double click event listener then show in modal with slide content . Thanks

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

    Nice tutorial ,
    which extension you are using that shows imported image's preview in left side ?

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

      Image preview : extension

  • @tinhuynh0703
    @tinhuynh0703 Рік тому +2

    I have problem when 3 images is showed, the property loop={true} working not correctly when click button arrow-next (but arrow-prev is working normally). Can you set the images to 3 and try click to arrow-next to see the issue? Thank you!

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

      Yeah, I see the issue that does not work 3 slides.

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

      ​@@codsfli Can you suggest another idea or libraries like this? I try many libraries but none of them work with react18.

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

      I tried some of the libraries but it did not work properly. I suggest you try the Materialize CSS slider. I think 3 slides not work.

  • @goodtimefilms6091
    @goodtimefilms6091 Рік тому +2

    my images are all decentralized, and the gap beetween then are to mich bigger, what i can do to solve that? i cant`t find any gap or padddingo wich does that

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

      check swiper object inside have any spaceBetween then remove that.

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

    Bro prev img & next img are not showing! 😢

  • @rohitrawat5536
    @rohitrawat5536 Рік тому +3

    bro you really deserve a like 👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍 thanks for your tutorial and here's a request for you that plz add a caption or title / heading to understand it easily

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

      Thanks 💖. I try but need help to improve tutorial quality and interesting content. Please give me your valuable ideas to create more tutorial 🙏

    • @rohitrawat5536
      @rohitrawat5536 Рік тому +2

      @@codsfli Ok I'll think about it but currently i need your help as the slide you have made I need similar slider without spacing between images in a 3d view like a cubical shape
      Can you help with that

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

      like : swiperjs.com/demos/230-effect-cube/core

  • @edgarenriquegarciadelacruz4490

    can you make this slider in Angular 14

  • @myardanaqiella3910
    @myardanaqiella3910 2 місяці тому +1

    hey can u create tutorial same Carousel but using embale-carousel-react library ?

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

    So cool and amazing tutorial. Thank you

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

    can I add progress bar as a pagination instead of dot pagination , its there any way

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

      Check the swiper documentation you will find options.

  • @zoropppp
    @zoropppp Рік тому +2

    how the lil images showing on the left side

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

      what?

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

      The extension
      Small images on the left side parallel to img ele

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

      Extension name is : Image preview.
      Thanks for you valuable comments 🥰

  • @itchyJaw
    @itchyJaw Рік тому +2

    Now I am experiencing weird problem maybe one of you guys experienced this. When I am trying to hide the div for Swiper its giving me a white blank screen wonder why and how to fix it.

    • @codsfli
      @codsfli  Рік тому +3

      I face the same problem. I don't know how to fix it. if anyone knows this problem solution, Please comment.

    • @niloyniloy4121
      @niloyniloy4121 Рік тому +2

      I face same problem.are you fixed the problem??

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

      @@niloyniloy4121 if you have existing website and wanting to add this just remove the html zoom part so it wont enlarge your existing page and 1 more thing remove the scrollbar thumb so the scroll thumb on the right wont look odd.

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

    what extension do you use for this green size optimal after code thing

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

      what's green thing ??? I can't understand!

  • @FajariSaepul0
    @FajariSaepul0 Місяць тому

    did you styling by creating vanila css?

  • @arianhajiaghaei6774
    @arianhajiaghaei6774 Рік тому +2

    bro you really deserve a like . what is your vs code font ?

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

      Cascadia Code. Thanks 🥹

  • @anonimuser1
    @anonimuser1 Рік тому +4

    Very cool

  • @clay9600
    @clay9600 Рік тому +2

    what is this css file that appears out of no where and it's not working for me

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

      which CSS file?

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

      8:00

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

      Check in the description, I added source code link.

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

    hey man i have trouble because my images are in column not row, i don't know how to change that

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

      Add flex-direction: column

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

    What font family do you use ?

  • @Ankii_kumar
    @Ankii_kumar Рік тому +2

    Great work ❤

  • @niloyniloy4121
    @niloyniloy4121 Рік тому +2

    Your code not working, cards break large device but woking small devices.....
    Can you fix the problem?

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

      Which device slides break.

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

      @@codsfli solved bro,i can't implement your code write place..

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

      Nice you did it 💖

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

      @@niloyniloy4121 Wat did u do to solve that

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

      @@niloyniloy4121 Sir plz let me know how to solve it as I am getting same

  • @MahammudHassanLimon
    @MahammudHassanLimon 2 місяці тому +1

    bro, ctrl + click then localhost 5173 open in the browser but its not working please help

    • @codsfli
      @codsfli  2 місяці тому

      I think node are not running 🤔

    • @MahammudHassanLimon
      @MahammudHassanLimon 2 місяці тому

      @@codsfli I have node ! but still not working ,,,, please help me

  • @adedoyinadeyemo-wp6jn
    @adedoyinadeyemo-wp6jn 7 місяців тому +2

    This carousel design is not in the swiper demos but plugins, which must be paid for. So, how did you gain access to it, and how can i use it in my code?

    • @codsfli
      @codsfli  7 місяців тому

      It’s free, you can use your project 👍

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

    Hola, me parecio muy bueno el video, quise intentarlo poner en mi aplicacion y no me queda igual, no se me ponen los estilos

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

      Check anything miss

  • @aaryan_sharmaa
    @aaryan_sharmaa 7 місяців тому +1

    I am having trouble finding the precise source code folder in the repository. Could you please let me know?

    • @codsfli
      @codsfli  7 місяців тому

      Check in the description 👍

  • @altairfarooque8663
    @altairfarooque8663 Рік тому +2

    which version did you use , current version not working properly

  • @mattew399
    @mattew399 2 дні тому +1

    thank you for the tip

  • @Junior-chuks
    @Junior-chuks 2 місяці тому +1

    You are very good at what you do, but it will be nice or should I nicer if you explain along the code you are writing.

    • @codsfli
      @codsfli  2 місяці тому

      Yeah, I am planning in future 😍

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

    great work ! thank you

  • @cristiandanielriosquintero7193

    thank you very much! It wat totally helpful! even thougth my card dont centralize 😄

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

    Thank you! Great video

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

      Thank you so much 🥰

  • @Techvirologist
    @Techvirologist 10 місяців тому +2

    Module not found: Can't resolve 'swiper/react' - i have used the import as - import { Swiper, SwiperSlide } from "swiper/react";, but the error is there - swiper/react not found. what to do, could anyone have solution.

    • @codsfli
      @codsfli  10 місяців тому

      Check swiper documentation

    • @saiganeshdarni532
      @saiganeshdarni532 7 місяців тому +2

      try to import from swiper/modules

  • @Sakthi-Sathish
    @Sakthi-Sathish Рік тому +1

    Bro but image doesn't Fully set on it ,it shows only 75%. Image, i did manything but I didn't able to fix that problem can you help me

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

      object-fit: contains;

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

    this is really good but your css code affects my own css code it makes my work extremely big on desktop view i wonder why it happens like that

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

      Remove html and body css. Thanks 🥰

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

    Hey am facing an error can you help me?

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

      Message me in messenger

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

      Kindly give your id
      @@codsfli

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

      facebook.com/profile.php?id=100028840303470&mibextid=ZbWKwL

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

    i'm just copy pasted this code .but it doesnot worked

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

      Watch full video

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

      @@codsfli i didnt done any chages.the same i'm used , but not worked.could you help me please

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

      Contact me in messenger

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

      @@arjunsuresh8908 you probably did't installed dependencies, install swiper

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

      i think so

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

    The swiper slowly slide in ios? Any solution

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

      not swiper, your image size makes slow, i think.

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

      @@codsfli but it works fine in Android

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

      or browser cache issue

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

    suggestion: in your github repository give names to the folders without white spaces. I am trying to clone a single directory but it is not cloning probably because of this.

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

      Thanks ❤️‍🔥

  • @Hey_AI_Boy
    @Hey_AI_Boy 8 місяців тому +1

    Bro, What is vs code theme name ?

    • @codsfli
      @codsfli  8 місяців тому

      Material theme 👍

  • @3boodon
    @3boodon Рік тому +1

    Is this effect free ? cuz after insalling swiper I noticed that the css files for this effect are empty

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

      Yeah it’s free

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

    autoplay is not working

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

      Swiper has some issue 🥱

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

      maybe you should import AutoPlay module, i did not see AutoPlay module in cods's code.

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

      yeah

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

    how to add 1 to 10 number for slide_images_ ? are you using plugin for that?

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

      install text pastry extension. Thanks for comment ❤️

  • @mdmodassir6932
    @mdmodassir6932 Рік тому +2

    Hello please. I need your help

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

      How can i help you

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

      @@codsfli actually I am doing internship. So how can I contact you personally? Please

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

      message me in messenger

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

      @@codsfli your I'd ?

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

      facebook.com/profile.php?id=100028840303470

  • @fiorenzacelestyn1340
    @fiorenzacelestyn1340 6 місяців тому +1

    very short and helpful

  • @shreetimohapatra4142
    @shreetimohapatra4142 11 місяців тому +1

    my screen is just being white, and none of it is getting imported

    • @codsfli
      @codsfli  11 місяців тому

      Check Swiper documention 👍

  • @mahkamov_9
    @mahkamov_9 2 місяці тому +2

    Thank for you. Bro

    • @codsfli
      @codsfli  2 місяці тому +1

      Welcome ☺️

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

    Class constructor Swiper cannot be invoked without 'new' -- i'm getting error like this

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

      download complete source code.

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

      replace you import with this --> import { EffectCoverflow, Pagination, Navigation } from 'swiper/modules';

  • @max_shorts-mx
    @max_shorts-mx 8 місяців тому +1

    not working bro i mean your code is working like a normal slider

    • @codsfli
      @codsfli  7 місяців тому

      Check swiper documention

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

    Not working.

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

    my brother la que ocupaba mas te falto dejarla la opcion de automatica

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

      Thanks for pointing that out, my brother! I appreciate your suggestion and I'll make sure to include the automatic option next time.

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

    should I implement it into my site? plz :)

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

      Implement ok but not full design.

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

      @@codsfli tnx, I should send link of my project when I deploy it

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

      Okay

  • @NiyasAccolades
    @NiyasAccolades 5 місяців тому +1

    Error:
    × the name `Swiper` is defined multiple times
    ╭─[/Users/niyas/Desktop/Cidbi/cidbe-user-next/src/app/product-deatiles/Slider.jsx:1:1]
    1 │ import Swiper from 'swiper'
    · ───┬──
    · ╰── previous definition of `Swiper` here
    2 │ import 'swiper/dist/css/swiper.css'
    3 │ import 'swiper/modules/effect-coverflow/effect-coverflow.min.css';
    4 │ import 'swiper/modules/pagination/pagination.min.css';
    5 │ import 'swiper/modules/navigation/navigation.min.css';
    6 │ import { Swiper, SwiperSlide } from 'swiper/react';
    · ───┬──
    · ╰── `Swiper` redefined here
    7 │ import { EffectCoverflow, Pagination, Navigation } from 'swiper/modules';
    8 │ import sliderImg1 from '../../../public/images/product-view/slider/Slide Image (1).svg';
    9 │ import sliderImg2 from '../../../public/images/product-view/slider/Slide Image (2).svg';
    ╰────
    error

    • @codsfli
      @codsfli  5 місяців тому

      Update swiper

  • @Agendamento23
    @Agendamento23 2 місяці тому +1

    Nice

    • @codsfli
      @codsfli  2 місяці тому

      Thanks 😍

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

    Osam👌🎉

  • @thequietkidඞ
    @thequietkidඞ Рік тому +2

    Why did I waste my time even after copying ditto its not working

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

      I'm sorry it's not working for you, please check the swiper documentation.

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

    Nice video, everything is explained in detail

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

      Thank you very much 🥰

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

    Waste of time

  • @jaihind6401
    @jaihind6401 Рік тому +2

    Waste of time ...

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

      Why 🥹

    • @jaihind6401
      @jaihind6401 Рік тому +2

      @@codsfli your code is not work I have wasted my 2-3hr but still not got any solution 🥲

    • @codsfli
      @codsfli  Рік тому +3

      You check the swiper documentation, why are you wasting your time on UA-cam?