How To Make Ecommerce Website Image Slider with HTML CSS Javascript -EASY TUTORIAL

Поделиться
HTML-код
  • Опубликовано: 8 янв 2025

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

  • @christianalip9306
    @christianalip9306 2 года назад +89

    Finally no library, no plugins just pure custom slider. Thank you so much!

    • @dev_ression
      @dev_ression  2 года назад +7

      thanks for watching :)

    • @jimzontrangia4530
      @jimzontrangia4530 2 года назад +4

      Same! This is the tutorial I'm looking too! Finally after 3 days of searching hehe

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

      In the css file, I don't understand at which moment de class "collection-container and collection" comes in ! Pls could you help me ?

  • @dev_ression
    @dev_ression  3 года назад +5

    Let me know what other tutorials you'd like to see!

  • @Sammy-rs6cd
    @Sammy-rs6cd Год назад +1

    lol
    thanks a looot, this is the most simple yet the most efective solution I've ever seen

  • @ImagineThatPuppets
    @ImagineThatPuppets 2 года назад +4

    Love that this is pure coding no plugs🎉

  • @YaseenAli08
    @YaseenAli08 2 года назад +13

    I don't understand. where is class ="collection-container" and it's nodes, in HTML.

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

    It worked! Thank you from Brazil!

  • @felikana5093
    @felikana5093 2 года назад +2

    Thank you man ! Thanks to you I passed my bachelor

  • @danielrico3352
    @danielrico3352 2 года назад +8

    Thanks for the video! It was very helpful! 👍👍
    Keep up the good work!

    • @dev_ression
      @dev_ression  2 года назад

      No problem man, thank you for the feedback!

  • @syedaligll7474
    @syedaligll7474 2 года назад

    Worked thank you alot! you're the best bro liked

  • @eoCaraLegalnaVoz
    @eoCaraLegalnaVoz 8 месяцев назад

    thanks bro, finally i found the right video, THANK YOU!!!

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

    Great projec, oww you really ROCK!

  • @roronoazr3252
    @roronoazr3252 2 года назад +1

    nice vanilla js the best now we understand the code not like libs or framworks than k u so much brother

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

    Thanks bruh u saved my web project

  • @kitingBadj
    @kitingBadj 2 года назад +2

    awesome dude! very helpful, thank you! keep up the good work!

  • @roshangeorge97
    @roshangeorge97 2 года назад +2

    Cool production man!!want to see more..

  • @ranishkumar8398
    @ranishkumar8398 2 года назад +15

    what is the use of ".collection-container", ".collection", ".collection img", ".collection p", ".collection:nth-child(3)" in style.css ?

    • @SK-ln6nm
      @SK-ln6nm 2 года назад

      ruclips.net/video/9uIRO279HO8/видео.html

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

      i got confused too, like what is the purpose of this part in css? cause i dont see one that use in his html code. Please explain to me cause i am a new in here

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

      You found ? Pls help me, i am new ​@@icecreamre21

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

    thanks brother with your code i finished a project thanks a lot

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

      Good to hear bro! Thanks for watching :)

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

      @@dev_ression give a link for a small donation for caffe

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

      i just started studying javascript and css i need help many times can i contact you privately ???

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

      bro do you understand why he uses collection in css although there is no class in css with collection

  • @thaotruong7035
    @thaotruong7035 2 года назад

    this is so great, make a product slider from scratch. thank you sir

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

    thanks, the video tutorial helped me

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

      Glad you hear, thanks for watching!

  • @fatimazahraelhichami1410
    @fatimazahraelhichami1410 2 года назад +1

    This is very helpful ,thank you so much !

  • @AsmaKhan-qf6gd
    @AsmaKhan-qf6gd 2 года назад +1

    thank you so much bro for such an informative video

  • @funterban6536
    @funterban6536 2 года назад +1

    thank you, sir we want more projects, create with pure JavaScript

  • @zayyanusmani4717
    @zayyanusmani4717 2 года назад +1

    Nice one Keep it Up

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

    you are a legend. Thank you

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

      thanks for watching bro!

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

      @@dev_ression bro do you understand why he uses collection in css although there is no class in css with collection

  • @AbbaJi-gm4vc
    @AbbaJi-gm4vc 2 года назад +2

    Thanks..!! But it would have been great if you spoke while writing the js part.

  • @itsEasy-Bro
    @itsEasy-Bro Год назад +1

    that's what i needed

  • @mobilepiano8018
    @mobilepiano8018 2 года назад +3

    You should explain this in details for beginers.

  • @khaileidoscope
    @khaileidoscope 2 года назад +2

    what's that collection container? does that do anything?

  • @pradumanpandey6065
    @pradumanpandey6065 2 года назад +2

    Thanks bro.It was very helpful

  • @AiannaWilliams
    @AiannaWilliams 5 месяцев назад

    Thank you so much it worked! The only thing I'm having trouble with is getting my images to lay horizontally, instead they're stacked vertically. Could you help me fix that? I'm not sure what I missed.

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

    Pls when and where do you introduce a class named collection-container ?

  • @4PXLZ
    @4PXLZ 2 года назад +1

    i love it!! new sub

    • @SK-ln6nm
      @SK-ln6nm 2 года назад

      ruclips.net/video/9uIRO279HO8/видео.html

  • @king-Ola4987
    @king-Ola4987 11 месяцев назад +1

    Hello sir, please I'm curious about something. The html doesn't have a class called collection-container and you include it in your css . Please I'm confused

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

    hey there is no class called collection-container so why did he add that into the site?

  • @AzharTechnoCoder
    @AzharTechnoCoder 2 года назад +1

    Nice one brother ....

  • @doomigoomi
    @doomigoomi 2 месяца назад

    you're amazing

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

    No hablo bien el idioma inglés, pero aun así pude entender perfectamente todo. Excelente vídeo, saludos desde Argentina.

  • @housamhegazy2928
    @housamhegazy2928 2 года назад +1

    Thank you so mutch

  • @srbmusic1502
    @srbmusic1502 2 года назад +1

    Very nice video 👍

  • @mohdjibly6184
    @mohdjibly6184 2 года назад

    Thank you for sharing bro

  • @anasmujeeb-tq3jl
    @anasmujeeb-tq3jl Год назад +1

    bro please tell me how can i make this slider responsive?

  • @facundodtd
    @facundodtd 2 года назад

    dude, you know why in Chrome the slide transition when changing product is abrupt?, but in Firefox works correctly. Thanks for the video, it’s excellent

  • @jackpre_
    @jackpre_ 2 года назад +2

    just wondering if there is any way to make "containerDimensions.width" variable in the js to update when the screen size is changed. At the moment the slider moves the width of the page as of when it was first loaded.

    • @LordmkKING67
      @LordmkKING67 2 года назад

      hey brother, did you find the solution to this perhaps?

  • @_litte.san_1233
    @_litte.san_1233 2 месяца назад

    nice video

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

    Thanks 🤗

  • @maciejka1
    @maciejka1 2 года назад +1

    did you just uploaded .zip file to github?

  • @devendraverma9147
    @devendraverma9147 6 месяцев назад

    There is one element with classname pre-btn and nxt but in javascript you are doing like pre-btn[i]. It doesnt make sense at all

  • @An-yh2bl
    @An-yh2bl 2 года назад +1

    Where is the collection class in your HTML? It´s confusing cause I can´t see it...

  • @jimzontrangia4530
    @jimzontrangia4530 2 года назад

    Thanks!

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

    Hei, Great Job!!! could i show to fetch post or items API to the slider? Thank :)

  • @t3ntube357
    @t3ntube357 2 года назад

    It is crazy how you are not using eslint error debugger, anyway good tutorial ♥

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

    It looks like You have defined .collection class in css but it's not in html, so it does not work

  • @sushantw834
    @sushantw834 2 года назад +1

    Thank you.

  • @tabithajackson2184
    @tabithajackson2184 2 года назад +9

    Where's the collection-container in the html file?😭😭

  • @muritalamuideen1947
    @muritalamuideen1947 2 года назад +1

    Thanks man. You really save my ass

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

    that noodles looked good

  • @michaelluislapak3787
    @michaelluislapak3787 8 месяцев назад

    I have a problem when I copy the first carousel but the wnd one in the same html my scroll view is going down

  • @gamerthegamer7652
    @gamerthegamer7652 2 года назад

    Hey, great vid!
    But how can i change how much it "slides", say in a small screen, only 1 or 2 at the time, or enough to cover the screen

  • @missooahmed6607
    @missooahmed6607 2 года назад +1

    Thanks alot

  • @MrAbbo11
    @MrAbbo11 3 года назад +1

    thanks man.

  • @yassirnasri4900
    @yassirnasri4900 2 года назад +1

    keep up

  • @Onionbagel
    @Onionbagel 2 года назад

    How does this work with an api? like with youtube api, and i have a bunch of images of thumbnails being called at once?

  • @amritamazumder2656
    @amritamazumder2656 2 года назад

    Hey thanks this is really helpful. One question, when I switch it to mobile view and the cards are all vertical, one on top of the other, what should I change or add in css so that the arrows come to the top and bottom of the container instead of left and right.

    • @RAJUBHAI-ww7em
      @RAJUBHAI-ww7em 2 года назад

      Arrange the elements of inner carousel basically cards using flex-box , flex-row

  • @XIAOx
    @XIAOx 2 года назад

    is there a version with this vertically?

  • @benogega2543
    @benogega2543 3 года назад +3

    I tried everything but my slide doesn't work? Idk

    • @muhammaddelower5522
      @muhammaddelower5522 2 года назад +2

      same

    • @ildikoedit9110
      @ildikoedit9110 2 года назад +5

      RUclips is full of fake tutorials, watch out. They upload some random crap to collect subscribers.

    • @dev_ression
      @dev_ression  2 года назад +2

      @@ildikoedit9110 sounds like you’re doing everything except figuring out the bugs in your code 👋

    • @ildikoedit9110
      @ildikoedit9110 2 года назад +2

      @@dev_ression I have already figured it out, thank you. But it doesn't change the fact that this code doesn't work.

    • @dev_ression
      @dev_ression  2 года назад +1

      @@ildikoedit9110 I’m sorry you must be doing something wrong. If you watch the video, you can clearly see it does work.

  • @moremap
    @moremap 2 года назад

    nice👍

  • @syedimran3825
    @syedimran3825 2 года назад

    Hi, Thanks for sharing this. Please help to share with mobile & cursor swipe scroll also.

  • @staceyross-duncan9742
    @staceyross-duncan9742 Год назад

    I've followed this tutorial to a tee but can't get the product cards to sit in a row - they only display in a column. Any help?

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

      Set your product-container to display flex.

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

    For some reason it doesn't work in my case. I downloaded the css and js code from your github repo, but when I click any of the buttons, it just scrolls all the way to the end/start in a blink of an eye, so no transition duration :/

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

      Because you are not learning nothing, you shoulnd't just download some random code, learn how it works, then try it by yourself

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

      @@zenintz8826 Sry bro but first try to learn some basics of grammar, your comment doesn't make lot of sense

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

      @@alberkulicka954 I'm not native english speaker. It doesn't matter. Learn how to code, don't copy-paste, simple :) Dumba$$

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

      @@zenintz8826 Who cares about what you are? Learn it (same as your advice to my coding). Learn how to write, don't be illiterate, simple :) Sw€€ti€

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

    How to i add animation

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

    How would you make this an infinite loop?

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

    Plz give the link of both arrow pic

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

    check the source code, it not working.

  • @ayushi4340
    @ayushi4340 2 года назад

    Hey.. my pre btn doesn't work plzz help me out. I'm trying so many hours 😩😫

    • @SK-ln6nm
      @SK-ln6nm 2 года назад

      ruclips.net/video/9uIRO279HO8/видео.html

    • @dev_troy8903
      @dev_troy8903 2 года назад

      try:
      position: absolute;
      top: 50%;
      transform: translateY(-50%);

  • @hemantriffs
    @hemantriffs 2 года назад

    is this responsive?

  • @itsdrawing5700
    @itsdrawing5700 3 года назад +1

    It's also make with the help of bootstrap

  • @parthdashore46
    @parthdashore46 2 года назад

    clean

  • @pixbug3359
    @pixbug3359 2 года назад +1

    Legend

  • @hidaiasaidi7234
    @hidaiasaidi7234 2 года назад

    please can you send me fil source code i don't know how i can get it

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

    bro where is collection container

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

    How to make it infinite??

  • @mindethereal6627
    @mindethereal6627 2 года назад

    Please record more video teaching to share knowledge

  • @giorgijoxadze4178
    @giorgijoxadze4178 2 года назад

    You never know how much you have in common with so people.

  • @jellyhouse4034
    @jellyhouse4034 2 года назад +1

    savior

  • @sayendeepmahanty8141
    @sayendeepmahanty8141 3 года назад

    Can you send me the js file by making it ts file

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

    Colletions container WTF!!!

  • @goodmantshabalala-ei9vm
    @goodmantshabalala-ei9vm 25 дней назад +1

    Great tutorial but speak while coding it helps us to understand the context better rather than you coding fast and not sharing wat u doing mate

    • @dev_ression
      @dev_ression  21 день назад

      I'll keep this in mind for future videos, thank you

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

    5:44

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

    I liked the video up until where you didn't bother to explain where the .collection-container emerged from.😮‍💨

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

      I'm sorry you feel that way. This is quite an old video, it may be worth checking out my updated slider video on my channel.

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

      @@dev_ression Ok. Checking it out.

  • @Ollala
    @Ollala 2 года назад

    it look like u copy past but with typing unless u are so good

  • @prosenjeetsarker5262
    @prosenjeetsarker5262 2 года назад

    What we need for web design just make a video

  • @silencraft2670
    @silencraft2670 2 года назад +1

    Activa windows porfa

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

    9:12

  • @thechoosen4240
    @thechoosen4240 2 года назад +1

    Good job bro, JESUS IS COMING BACK SOON;PREPARE

  • @An-yh2bl
    @An-yh2bl 2 года назад

    This doesn´t work. It´s so bad to take time for such tutorials which just collect views and don´t work at all. I can do this with bootstrap but I wanted a tutorial which works with vanilla JS.

    • @dev_ression
      @dev_ression  2 года назад

      Strange. When you download the code from GitHub, you’ll find it does in fact work :)

    • @An-yh2bl
      @An-yh2bl 2 года назад

      @@dev_ression I won’t download anything. Uploading a zip file to github is unnecessary. Poor quality of your work.

  • @Sol4rOnYt
    @Sol4rOnYt 2 месяца назад

    i beg you talk the next time u do a tutorial cuz theres like 0 tutorials wheren obody talks n itll make u stand out

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

    działa

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

    No one will ever understand your video

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

      Wrong

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

      I disagree! It's actually easy to understand if you know what you're doing😊.

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

    thanks man