Vanilla JavaScript Project: Infinite Auto Scrolling Gallery With Clean Menu

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

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

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

    You already know what I'm going to say! It's so hard to find quality content like this and your efforts are so appreciated

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

    This is awesome bro you are a hidden Gem in RUclips bro

  • @joanapaulasoliveira
    @joanapaulasoliveira 3 года назад +4

    Thank you for your tutorials. Love your designs!

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

    This is wonderful, like always, Conor. :)

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

    Your channel is a gold mine! Thanks for this

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

    The scroll-effect is nice and looks cool, but from a semantic point of view is it a bad idea to use the heading several times.

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

    man you're amazing. you explain very well

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

    Thank you for sharing this project, I was wondering, is this project responsive for smartphones?

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

    This is amazing

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

    Thanks once again #Cornor for this great content. Keep it up bro. #CornorVanillaJs 🥳🚀

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

    Looks great!

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

    can I make this a section a page? I tried copying it over into a project and the whole page auotscrolls instead of the individual section or images

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

    Hi Conor, what about horizontal scrolling?
    Really good video

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

      Or like change the scrollUp to scrollDown with mouse wheel?

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

    Awesome!!! thank you so much!!

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

    Hi Conor, thanks for uploading such quality content! Could you explain the logic behind the infinite scrolling function? I don’t quite get the logic. Thanks in advance.

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

      Or to be more specific ( correct me if I’m wrong here ), the else if statement checks if the user has scrolled halfway through the slider such that the first clone is in view, and then immediately scrolls to the top and translates the scrollable container back into view seamlessly. But what does the first if statement do? When will target ever be 0? Thanks!

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

      @@brendanwong24 hi mate! Thanks for your comment. So when the page loads in the DOMContentLoaded event listener we set the scroll position to 1 pixel. This allows us to scroll to the top of the page which is 0 pixels. Therefore when we scroll to the very top of the page the if clause (if window.scrollY == 0) is true and will therefore trigger causing the browser to scroll half way down the page making it look like an infinite scroll. I hope this makes sense.

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

    another one amazing tutorial,can you start GSAP Animation Library Tutorial series Thank you.

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

    Hello! I love this tutorial! I'm trying to stop the animation everytime I mouseover an image but I'm not finding a proper way to do that. Anyone knows how to do it? Thanks for this videos Conor!

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

      Hey mate. I’ll look into this and get back to you. Shouldn’t take much more code to implement.

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

      @@ConorBailey Stumbled across your videos recently and what a goldmine, thank you! I'm trying to implement a pause on the scroll too but not quite figured it out yet, did you find time to take a look into it?

  • @KuBa-tkm
    @KuBa-tkm 3 года назад

    N I C E