MOMENTUM Scrolling with Smooth-Scrollbar.js!

แชร์
ฝัง
  • เผยแพร่เมื่อ 6 ม.ค. 2025

ความคิดเห็น • 100

  • @DesignCourse
    @DesignCourse  4 ปีที่แล้ว +11

    I'm going to have to rearrange my terrariums so you can see both. I just added a 9 month old female ball python which is directly behind me! Here's a pic of her and the tank I built: imgur.com/a/jIsNCC7

    • @se7en2021
      @se7en2021 4 ปีที่แล้ว

      Thank you !

    • @LabhamJain
      @LabhamJain 4 ปีที่แล้ว

      Haha Gary Without Body! 😛😛😛

    • @CabbageYe
      @CabbageYe 4 ปีที่แล้ว

      cool

    • @CodingUnited
      @CodingUnited 4 ปีที่แล้ว +1

      Lol I thought you meant the programming language "python" so I was confused.

  • @swyxTV
    @swyxTV 4 ปีที่แล้ว +85

    floating head look suits you

  • @karansosa1837
    @karansosa1837 4 ปีที่แล้ว +8

    this is I've been looking for soo long, I've tried so many random plugins thank you so much sir

  • @rbarufi
    @rbarufi 4 ปีที่แล้ว +3

    Man I've been looking for this for days... But i didn't knew the name of it, just the effect hahaha.
    Thanks alot!

  • @AyushSinghxda
    @AyushSinghxda 4 ปีที่แล้ว +16

    Hey Gary, it's all good, but isn't it considered as bad UX?
    And the moment you club it with GSAP ScrollTrigger/ ScrollMagic, it doesn't allow to pin the elements because of transforms.
    Also considering the fact that all major browsers are providing native smooth scroll now.

    • @mann_von_welt
      @mann_von_welt 4 ปีที่แล้ว +1

      You can use scrollbar.isVisible(element) to check if you reached an element and then apply some css animation, gsap, or whatever. I would not say it's bad UX, but it should only be used at kinda playful / experimental sites.

    • @AyushSinghxda
      @AyushSinghxda 4 ปีที่แล้ว +1

      @@mann_von_welt Pinning of elements is not possible as smooth scroll applies position: fixed over parent element. Position: fixed inside a position: fixed is not relative to viewport but the parent element.

  • @riyapatel17
    @riyapatel17 4 ปีที่แล้ว +3

    This is so informative. I wish I knew this earlier. You’re doing such an amazing job to help others 😊😊😊😊

  • @rahul900day
    @rahul900day 4 ปีที่แล้ว

    the scrolling is sooo satisfying

  • @arbazkhan-od9sk
    @arbazkhan-od9sk 4 ปีที่แล้ว

    I love the music at the end

  • @freshwire
    @freshwire 4 ปีที่แล้ว +22

    I find websites that force a scrolling behaviour on me very annoying. I disable smooth scrolling in my browser for a reason!

    • @alanpeople1
      @alanpeople1 4 ปีที่แล้ว

      What reason is that, by the way?

    • @BlueJDev
      @BlueJDev 4 ปีที่แล้ว

      I swear this same guy did a video recently in which he said this was a bad idea?!

    • @tommygecko
      @tommygecko 4 ปีที่แล้ว

      The first time I ran into this I hated it too. I think it really depends on how you use it. What a plugin like this essentially does is take away some control from the user in exchange for nice looking effects. As long as you don't give the user a need to scroll in a controlled manner, it should be fine (for example when reading long bodies of text, having the text 'jump' when scrolling down causes the reader to lose track of where he/she was reading and forces the eyes to change focus. Worse, if the reader naturally reacts by scrolling in the opposite direction to correct this, he/she will just go back to the previous position. He/she just made 2 actions without any progress, that is just super annoying UX)

    • @imluctor5997
      @imluctor5997 2 หลายเดือนก่อน

      tbh i think all websites should have scrolling simular on mobiles where if you slide your finger it takes a bit until it completely stops. And on desktop it should also be smoother

  • @jer254
    @jer254 4 ปีที่แล้ว +2

    Very creepy floating head... I love it LOL

  • @zacharyzanger9104
    @zacharyzanger9104 4 ปีที่แล้ว +2

    Floating head for the win! Love the video... Thanks!

  • @esseifforte
    @esseifforte 4 ปีที่แล้ว +1

    Hi! thank you so much!
    How to slow down and block scrolling with ease when reach to the edge of start and end document?

  • @gaurabdhakal13
    @gaurabdhakal13 3 ปีที่แล้ว +1

    Is there a way to get this smoothness in a wordpress website

  • @Abhishek-dp5tc
    @Abhishek-dp5tc 4 ปีที่แล้ว +3

    How can i add this to my react

  • @SherwinlouwZa
    @SherwinlouwZa 6 หลายเดือนก่อน

    how do we work with scroll events now using this?

  • @harpreetsingh-tn6em
    @harpreetsingh-tn6em 2 ปีที่แล้ว

    thanks but unfortunately i got into a problem . scrollmagic did not work properly when i used smooth-scrollbar .can you help me with that

  • @CreativeB34ST
    @CreativeB34ST 4 ปีที่แล้ว +1

    Does anyone have experience if this library works well on mobile with touch swiping?

  • @vitus6644
    @vitus6644 4 ปีที่แล้ว +3

    its not working. i have: Uncaught SyntaxError: Cannot use import statement outside a module

    • @ren-design
      @ren-design 4 ปีที่แล้ว

      the needs to be at the end of the body

    • @vitus6644
      @vitus6644 4 ปีที่แล้ว

      @@ren-design i used another smooth scroll script and its working perfectly. github.com/cferdinandi/smooth-scroll

    • @christopherk4166
      @christopherk4166 4 ปีที่แล้ว

      I'm new to this as well, but I think you just need to add "type='module'" to the script tag. You can learn more by googling "ES6 imports"
      It should look something like this:

  • @Abdullah_Osama
    @Abdullah_Osama 4 ปีที่แล้ว

    happy to meet you gary timeline

  • @narenstudio5
    @narenstudio5 3 ปีที่แล้ว

    @simon sir it works when Im running it from my visual studio code after pushing it to the github, then I tried to open it from github but the smooth animation is not working ,it remains default any way to fix
    Im creating my portfolio please reply me Im your huge fan

  • @sahilsinghhtc
    @sahilsinghhtc 4 ปีที่แล้ว +1

    Sir, great tutorial. im able to make my scrolling smooth with this js file. But i cant understand the "plugin options" in the last options. Could you please make tutorial on it?

  • @kangzoel8717
    @kangzoel8717 4 ปีที่แล้ว +8

    Smooth scroll makes me feel weird

  • @Kevzz2srs
    @Kevzz2srs 4 ปีที่แล้ว +3

    Man so glad ublock exists else I would've gone insane from websites having their own comedian scrolling speeds shits just annoying.

  • @ThatGuyAnonymous
    @ThatGuyAnonymous 4 ปีที่แล้ว

    The floating head freaked me out, I was reading something on a different tab then I switched to this one.

  • @DDesigner123
    @DDesigner123 4 ปีที่แล้ว

    can you paste the cdn version I want to see if I can get this working in wordpress for a client. Thank you.

  • @Trazynn
    @Trazynn 4 ปีที่แล้ว +3

    I'm learning Javascript and it's going alright and all. But all Javascript tutorials are about objects, and classes, and databases. And that's great, i understand that's important. But to a designer it seems that all of that, yes, the core of javascript, the fundamentals, can be skipped in favour of just importing these libraries that let you animate cool shit. I don't need to develop an app I just want things to wiggle and swoosh.

  • @SohailKhan-9422
    @SohailKhan-9422 4 ปีที่แล้ว

    Nice t-shirts bro

  • @EliSamba
    @EliSamba 4 ปีที่แล้ว +4

    Hey Gary, Lovely stuff. I am a graphic designer wanting to improve my web design skills. My question is: Is it possible to use this tool and process on a website builder such as Wix? Sorry if it is a silly question, I believe the word to describe my skill level is a "noob" 😊

    • @iamcaviar2674
      @iamcaviar2674 2 ปีที่แล้ว +1

      It's 1 year later but no, Wix can not be self hosted so you don't have control over the javascript libraries you wanna use. It's just for the people who want to drag and drop design websites and a bit f css tweaks.

    • @EliSamba
      @EliSamba 2 ปีที่แล้ว

      @@iamcaviar2674 Better late than never! Thank you so much, it is a very helpful answer! 🥰

    • @codewithegai
      @codewithegai 2 ปีที่แล้ว

      @@EliSamba still interested in web design? Let’s start a business together.

  • @farvessafiyudeen0741
    @farvessafiyudeen0741 2 ปีที่แล้ว

    Hey guys does anyone know how to change color of the smooth scrollbar.js?

  • @bloodtusk
    @bloodtusk 2 ปีที่แล้ว

    Pls help me.
    How to turn off the scrollbar completely?

  • @fariskomo581
    @fariskomo581 4 ปีที่แล้ว

    Anyone i have a question please help me
    When i need to make a responsive website in adobe xd must i make it for every size or not?

  • @FarukAhmed-pc5hn
    @FarukAhmed-pc5hn ปีที่แล้ว

    What about fixed elements? Position: fixed not working!

  • @grxvethreat903
    @grxvethreat903 3 ปีที่แล้ว

    Hey! how make fixed position with smooth-scroll?)

  • @heinekhalwin8735
    @heinekhalwin8735 4 ปีที่แล้ว

    How do u even find all these cool js libraries ? Awesome video !

  • @DavidMartins1
    @DavidMartins1 4 ปีที่แล้ว

    Does anyone know a way to add momentum scrolling horizontally? I've been looking for days, it's driving me crazy.

  • @shareskill91
    @shareskill91 2 ปีที่แล้ว

    Do not work when height of the sections to 100vh

  • @sebastianf9831
    @sebastianf9831 4 ปีที่แล้ว

    OMGGGGG FINALLY!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

  • @arghyabanerjee900
    @arghyabanerjee900 3 ปีที่แล้ว

    Are you a guitarist along with a developer 😍😍😍😍😍😍...??????

  • @FarukAhmed-pc5hn
    @FarukAhmed-pc5hn 3 ปีที่แล้ว

    I've tried this but this plugin confilcts with other jquery plugins!

  • @karansosa1837
    @karansosa1837 4 ปีที่แล้ว

    it affects my internal CSS in my project, can anyone help me here?

  • @peoplewithpixels
    @peoplewithpixels 4 ปีที่แล้ว

    Ray-man coding today I see

  • @clleoweb4083
    @clleoweb4083 4 ปีที่แล้ว

    smooth-scrollbar.js - weight does 42 kb.. ??? Why would you do that? You said 2 kb, right?

  • @ErwinMeulman
    @ErwinMeulman 3 ปีที่แล้ว

    Smooth scrolling is a mess, same as the volume, controlled by the OS, browser and on your speakers. With the OS on 3 lines per scroll (Windows, Linux, MacOS) and a trackpad and flywheel mouse, surface dial and a JavaScript I confused how far I need to scroll.

  • @jasonszsilva3489
    @jasonszsilva3489 2 ปีที่แล้ว

    how to do this to php

  • @DirePantsDim
    @DirePantsDim 3 ปีที่แล้ว

    Very informative, but due to the "highjacking" of the scroll function of the browser, this plugin makes any sticky navbar immobile.

  • @Bakkali.Soufian
    @Bakkali.Soufian 4 ปีที่แล้ว

    isnt it the same as scroll behaviour in css

  • @mbusokotobe6276
    @mbusokotobe6276 4 ปีที่แล้ว

    This is awesome

  • @alaazarrouk5941
    @alaazarrouk5941 4 ปีที่แล้ว

    it's not working !! please can you respond

  • @beinyourguard
    @beinyourguard 4 ปีที่แล้ว

    what does npm init -y do? why the flag?

  • @mistekfcio
    @mistekfcio 3 ปีที่แล้ว

    I absolutely hate it when a website or an app overrides browser default scrolling behaviour. It's a bad practice in my opinion

  • @brambekkers
    @brambekkers 4 ปีที่แล้ว

    Var? anno 2020?

  • @Maybehassanawad
    @Maybehassanawad 4 ปีที่แล้ว

    Nice floating head

  • @alperburakpusar
    @alperburakpusar 4 ปีที่แล้ว

    Doesn't work right with perspective parallax..

  • @bendyamin86
    @bendyamin86 4 ปีที่แล้ว +1

    This will break any "appear on scroll" animations as it high jacks the native scroll events and won't be able to calculate the window height and top values.

  • @harshjain8345
    @harshjain8345 3 ปีที่แล้ว

    Can you give me some tips to integrate floating head like yours..in my website😂😂😂...

  • @fullstack_journey
    @fullstack_journey 4 ปีที่แล้ว

    that floating head facecam is creepy, include the shoulders too please

    • @malcolmrodrigues911
      @malcolmrodrigues911 4 ปีที่แล้ว

      He had a green shirt in front of a green screen. Wasn't intentional

  • @user-zd5ee
    @user-zd5ee 4 ปีที่แล้ว

    Author:
    body {
    visibility: hidden;
    }

    • @CloudyyYT
      @CloudyyYT 3 ปีที่แล้ว

      you dont need : after author

  • @SayJee
    @SayJee 4 ปีที่แล้ว +2

    #gary {
    position: absolute;
    left: 0
    bottom: 0;
    }

  • @yasser.dev7
    @yasser.dev7 4 ปีที่แล้ว

    I like you bro !

  • @quickindiarecipe
    @quickindiarecipe 4 ปีที่แล้ว

    parallax doesn't work with this

  • @chandarraja1119
    @chandarraja1119 4 ปีที่แล้ว

    at the end of the each video please speak about browser support like chrome edge and firefox won't be a problem here. speak about IE! support😭😞.

    • @CreativeB34ST
      @CreativeB34ST 4 ปีที่แล้ว

      Just drop IE support, it's not worth it. Browser is dead. People who still use it should move on or use at own risk.

  • @alex_chugaev
    @alex_chugaev 4 ปีที่แล้ว +16

    DONT DO THIS PLEASE, ITS ANNOYING

  • @feronanthus9756
    @feronanthus9756 2 ปีที่แล้ว

    This is so infuriating. The last thing I want on a desktop is for my mouse wheel to act like scrolling on a mobile phone. I wish developers would stop running code on their websites which override the settings a user chooses on their web browsers and devices.
    Why am I here you ask? So I can find the code snippet some websites use to do this so I can block it.
    "You can notice the scrollbar itself has been hijacked"
    Yeah... good choice of words there.

  • @franny8480
    @franny8480 3 ปีที่แล้ว

    bro not like this.... this floating head makes me nervous xD

  • @asumiluna9066
    @asumiluna9066 4 ปีที่แล้ว

    BRUH THAT CHIN

  • @zorujuro192
    @zorujuro192 4 ปีที่แล้ว

    Css html{scroll-type:smooth}

  • @yogeshdeveloper5346
    @yogeshdeveloper5346 4 ปีที่แล้ว +1

    First!

  • @masterkhoa
    @masterkhoa 4 ปีที่แล้ว

    smooth scrolling is counter-intuitive and generally annoying. REMOVE

  • @nerosonic
    @nerosonic 4 ปีที่แล้ว

    floating head /watch?v=HQoRXhS7vlU

  • @СергейКостюк-х8л
    @СергейКостюк-х8л 4 ปีที่แล้ว

    import Scrollbar isn't working!