Creating an infinite logo carousel with pure CSS

Поділитися
Вставка
  • Опубліковано 1 січ 2025

КОМЕНТАРІ • 290

  • @firstbloodfangy6933
    @firstbloodfangy6933 Рік тому +32

    Exactly what I was looking for simple and clean, I never get tired of seeing this slide. Great tutorial Robby!

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

    Came across this video by pure chance and thank you very much for it. Exactly what a tutorials needs to be like! ❤

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

    Hey Robby, this is awesome!! Exactly what I was looking for... neat CSS, no Javascript even needed. Pure and simple CSS code. Keep up the great work. Thank you!!!

  • @vaztechs
    @vaztechs Рік тому +23

    Straight to the point. You made it so easy to understand, thanks!

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

    The best short css trutorial I've ever seen 😊. Well explainded. Great. Looking forward to next one.👍

  • @crim-son
    @crim-son 11 місяців тому +8

    Can you just imagine, and ive been battling with swiper js for months on how to create fluid autoplay infinite loop carousel, you solved my problem flawlessly

    • @tochimclaren
      @tochimclaren 4 місяці тому

      Any time I am working on a project and I realize I need to add a js library to the project. I feel some type of way. Especially libs that does these kind of stuff.

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

      for months? why, is that a huge neccesity for you

    • @crim-son
      @crim-son 2 місяці тому

      It was a requirement from work, when i did it on my own it always has bugs and glitches and layout shifts.

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

      @@crim-son ok buddy good luck may god be with you and ease your work🙏

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

    So useful... In case if anybody saw a glitch when the width is more and images are less, all we need to do is copy multiple times.

    • @wotok7
      @wotok7 10 місяців тому +1

      Damn, I spent 1 hour and didn't find the solution until found your comment. Thanks!

    • @ZakariaTEKNIS-gg4xf
      @ZakariaTEKNIS-gg4xf 7 місяців тому

      Thank you, saved my life, I was literally about to bang my head on the keyboard

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

      Lol I was actually trying to fix this for like 3 hrs

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

    After all the hassel of reading different blog posts, this is just the solution I was looking for, simple and straight forward. Thanks!

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

    Awesome tutorial Robby!
    Instead of adding the :before & :after tags you can also add the following css to the .logos container:
    mask-image: linear-gradient(
    var(--mask-direction, to right),
    hsl(0 0% 0% / 0),
    hsl(0 0% 0% / 1) 20%,
    hsl(0 0% 0% / 1) 80%,
    hsl(0 0% 0% / 0)
    );
    * This will fade in from transparent at 20% on each side using the background of the container ;)

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

    Wow I spent so many hours trying to make this and even did some math calculations to render them. But your solution is so much better and simpler

  • @thegreatkeljb
    @thegreatkeljb Рік тому +7

    This channel is underrated Why you only have 9k subs? You deserve more sir. Thank you for this.

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

    been struggling for days to find an exact tutorial, u are a life savior !!

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

    you made it so easy , thanks , i was doing it with intersection observers and intersection ratio in javascript , after i failed i came here and saw this , thanks

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

    Looked for a clean and simple solution for a while, very cool way to do it. You can also use CSS Mask in place of the :before:after and a linear gradient. Thanks for sharing this!

  • @MOHAMMEDKHALANDER-g1c
    @MOHAMMEDKHALANDER-g1c 9 місяців тому

    No words for you sir ,
    I just fascinated by your lecture , hats off to you sir
    You are teaching in next level ,
    Thank you for such a great content sir
    Thank you so much for your efforts and explanation

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

    Damn thats what i was trying for past 3 days chat gpt failed to to ths mannn love itttt you got a subscriber man

  • @tagore4d
    @tagore4d 6 місяців тому

    THanks so much for the video... You are one of the best TEACHERS, who know's exactly what to explain for a beginner like me! You are awessom SIR.

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

    I wasn't expecting it to be this easy. Thanks man ❤

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

    Thank you, I spent hours on other tutorials ,and as a beginner this was the simplest and easiest to understand and it WORKED!! Saved me more hours of frustration!

  • @ASPatel-ds9jt
    @ASPatel-ds9jt Рік тому

    This guy is so much sorted in terms of web development.......truly majestic

  • @dangriffiths7125
    @dangriffiths7125 22 дні тому

    Got yourself a new subscriber. Great work!

  • @affysatti8466
    @affysatti8466 21 день тому

    thank you so much even chatgpt couldn't offer such clean code

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

    Crystal clear! Loved it!

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

    you are a legand man, you just made my day with this simple and efficient explanation, also thank you so so much for sharing the code, im no coder and trying to navigate my way building my website and you made me a massive help with this video and the code, thank you so much man, wish you and your family all the best 🙏🏻

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

    Wow! This tutorial is so awesome! The concept is explained precisely and clearly. Thanks!

  • @nifuroxcazidnifuroxcazid6044
    @nifuroxcazidnifuroxcazid6044 4 місяці тому

    It's really cool. I have been searching this for several days.

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

    Thank you so much for the video, I didnt find that well explained tutorial or video anywhere else.

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

    That was exactly what I was looking for and you explained it so well. Thanks a lot!

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

    thanks Buddy, for the easy explanation....much love From KENYA🌎

  • @soumya_das527
    @soumya_das527 3 місяці тому

    In this video I got eveything , what i looking for few days. ThankYou 😁😁😁😁😍😍😍😍

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

    The second div overlay made my day. Slight skip on wide screens, but great improvement, thank you.

  • @t.j.5574
    @t.j.5574 7 місяців тому

    Damn, you're a great programmer lol. You made that look so easy. Great teacher too.

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

    You made it look super simple. Thank you!

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

    Amazing Robby! In one video you teach a lot of things

  • @timnooteboom7752
    @timnooteboom7752 9 місяців тому

    Great video! Thanks for this, just what I was looking for.

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

    Thank you Robby. You are truly the man!

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

    OMG what an amazing video I loved it thank you

  • @Checkmate-www
    @Checkmate-www 2 місяці тому

    thank you very much sir. didn't know it could've been this easy lol

  • @anirudh.s8518
    @anirudh.s8518 Рік тому

    Great work man, glad i got this on my recommended.

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

    Really great and simple, works like a charm! Thanks so much!!

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

    Thank you so much man! It took me two days, not animating but finding this tutorial 😅❤

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

    AWESOME work, man!

  • @AMBROSEOthniel
    @AMBROSEOthniel 20 днів тому

    This is the best so far🎉

  • @PeterParker-u1n
    @PeterParker-u1n 5 місяців тому

    what a clean and clear explanation

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

    Nice brilliant! Very well explained as well thank you, especially with the basic concepts, as i'm not a full-time coder , so I do tend to forget the basic things at times.

  • @KevinGonzalez-fo6jt
    @KevinGonzalez-fo6jt 11 місяців тому

    I Love this. And thank you for the detailed explanation 👍

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

    Precisely what I was looking for. Thank you!

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

    THANKS!, really what i ve been looking for :D

  • @veramay8739
    @veramay8739 4 місяці тому

    absolutely amazing :) saved so much time for me. many thanks!! :)

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

    Exactly what I'm looking for , tqsm robby 🎉

  • @mary_unknown
    @mary_unknown 9 місяців тому

    The easiest great tutorial for begginers like me, thanks! 😄

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

    Thanks a lot man, exactly what i was looking for!! cheers!

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

    my gosh what a code... this is an inspiring job... Super chingon!! Saludos desde Mx Mty

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

    Thank you. the video help me to solve the problem

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

    You're the best and my life saver!

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

    thx so much for this video... its magnific, send a hug for devs on Brasil!😁

  • @7guitarlover
    @7guitarlover Рік тому

    Thank you so much ! This is exactly what i was exactly looking for. I helped me a ton =) Subscribed to show my token of appreciation

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

    my last logo BuzzFeed collides with the 3m of the second div, why is that so ? I put in the code in elementor

  • @ZahidShaikh-k7r
    @ZahidShaikh-k7r Рік тому

    amazing bruh keep up the good work

  • @Srinath666
    @Srinath666 4 місяці тому

    Thank you man simple and perfect

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

    loved the video. thanks for such crisp info

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

    Nice! Pretty straight forward CSS. Thank you. I’ll likely use that!

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

    You made it super easy! Thanks man

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

    thank u sir you helped me with my deadline today! great video!

  • @ShahloBahodirova
    @ShahloBahodirova Місяць тому +1

    Robby thank you very mach very very very very very very help me

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

    This was very useful for my project. Thanks

  • @PoolMedia
    @PoolMedia 4 місяці тому

    Thanks man, really helpful!

  • @renanvcb
    @renanvcb 6 місяців тому

    That was amazing and super easy! Thank you!!!

  • @victorjesuscetvantescadena6500
    @victorjesuscetvantescadena6500 6 місяців тому

    You are great my friend, thank you very much!!! 🤯

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

    You just earned my subscription.

  • @FiragosJemal
    @FiragosJemal 24 дні тому

    Amazing ❤ I love it

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

    This is really helpful! Thanks for your work :)

  • @imdharmeesh.29
    @imdharmeesh.29 11 місяців тому

    Great video bro!

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

    Great content, thank you Robby!

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

    Helpful. Thanks for this video.

  • @albertberezvay5845
    @albertberezvay5845 4 місяці тому

    Brilliant! Thank you!

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

    this is great! im going to try these so i can use it for my GHL landing page projects, i hope it is responsive when it comes to mobile view.

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

    Very awesome tutorial, Thanks !!

  • @victoriapanidi1419
    @victoriapanidi1419 9 місяців тому

    thank you so much for this great explanation!

  • @Sergio-tq5wj
    @Sergio-tq5wj Рік тому

    Robby, thank you very much!. I am Sergio from Argentina 👍😊🇦🇷🇦🇷

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

    Nice logo scrolling..........Great

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

    Exactly what I needed!

  • @user-sd8iy7rq4k
    @user-sd8iy7rq4k Рік тому

    Thank you very much, just what I needed.

  • @MisterSteele
    @MisterSteele 9 місяців тому

    Exactly what I needed!!! thanks

  • @xyz-xc1qu
    @xyz-xc1qu Рік тому

    Thanks for this useful tutorial!

  • @oraki_pessoa
    @oraki_pessoa 6 місяців тому

    Thank you! Great video!

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

    Thank you very much. This was very helpful.💯

  • @robertwattner
    @robertwattner 9 місяців тому

    This is great, thanks. To do another, underneath, to the right, just set to translateX(100%) and make .logos direction: rtl.

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

    You helped me a lot, thanks!

  • @Мойникзанят-л5б
    @Мойникзанят-л5б 5 місяців тому

    Спасибо большое за помощь! ваше видео спасло мой дизайн:)

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

    the issue with this (as seen at 06:00) is that if the logo-slide is longer than the screen/.logos width it will only translate the width of the parent ie .logos or html width. watch how the mr beast logo starts off screen but doesnt end offscreen. very annoying because i have about 20 logos, which have a combined width of lets say 2000px. so i can only see the first few logos.

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

      I have the exact same issue.

    • @АлмазбекАлтынбекУулу
      @АлмазбекАлтынбекУулу Рік тому +1

      bruh, how do you solve it ?

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

      @@АлмазбекАлтынбекУулу I’m thinking off the top of my head now, but for a pure css solution i took all the logos i wanted, and put them in two divs (flex-row for even spacing and alignment. I put those two divs side by side in a container, which should have overflow-x-hidden. Then for the animation, translate each of the logo divs 100% to the left. This way, once the first logo div goes off the screen, the second one is right behind it, showing the first couple logos. Then the animation snaps back to the start, and the first logo divs logos should line up with where the second logos div’s logos were at the end of the animation. Making it seem infinite

    • @АлмазбекАлтынбекУулу
      @АлмазбекАлтынбекУулу Рік тому

      @@JohnCanCode thanks! will try it

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

    thanks man i copied the resources you had provided and everything came out clean on my page

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

    You're a gem!

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

    Thank you very much. Great Video

  • @johnmiltonlupatu5698
    @johnmiltonlupatu5698 9 місяців тому

    So is a good video tutorial, I like it so much. Thanks to you

  • @turanpehlivan1
    @turanpehlivan1 Рік тому +14

    A couple of issues to mention, my carousel dos not run as smoothly as yours, e.g., 1 - it jumps after it completes the loop, 2 - the fade in and out works when the position is relative but fade in from right disappears when I change position to fixed or absolute to re-position the carousel to the bottom of the page. Any feedback is appreciated.

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

      If you delete the script and duplicate the "logo-slide" div you solve the problem

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

      hey i know exactly the issue you are having, what you can do is this, you have duplicated the inner scroller, good, now mess around with the @keyframes slide from transform: translateX(%);
      }, mess adjust the percentage so that it starts exactly from where your second innerscroll will be, i hope that makes sense , instead of 0%, you can adjust it to 20% or whatever until its seamless

    • @herlocksholmes-uv5qw
      @herlocksholmes-uv5qw Рік тому

      @@firemasterleo I really don't understand what you mean by duplicating the inner scroller, what is it?

    • @herlocksholmes-uv5qw
      @herlocksholmes-uv5qw Рік тому

      ​@@alvarbuenfil7557 It worked for me, thanks for the idea! 😊

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

      @@herlocksholmes-uv5qw in your html, there is parent container and there is the child, the child is the one that translates right, so what i mean is duplicate the child, and mess with the( @keyframe from % ), until the first child is looping exactly from where the second child will be ,

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

    thanks a lot, that was really helpful !

  • @sol____-_-
    @sol____-_- 3 місяці тому

    Nice job.🫂

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

    If anyone is having a problem where you have a lot of logos to cycle through and the width of each of the "logos-slide" divs are much larger than the viewport and overlapping on each other, adding a "width: max-content;" on the "logos-slide" class solved the problem for me.

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

    Thank you Robby 👍