MOMENTUM Scrolling with Smooth-Scrollbar.js!

  Рет қаралды 85,485

DesignCourse

DesignCourse

Күн бұрын

Пікірлер: 100
@DesignCourse
@DesignCourse 4 жыл бұрын
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 жыл бұрын
Lol I thought you meant the programming language "python" so I was confused.
@swyxTV
@swyxTV 4 жыл бұрын
floating head look suits you
@KALTBLUTWOLF1
@KALTBLUTWOLF1 4 жыл бұрын
I found it rather creepy :o
@harshjain8345
@harshjain8345 3 жыл бұрын
😂😂😂
@karansosa1837
@karansosa1837 4 жыл бұрын
this is I've been looking for soo long, I've tried so many random plugins thank you so much sir
@rbarufi
@rbarufi 4 жыл бұрын
Man I've been looking for this for days... But i didn't knew the name of it, just the effect hahaha. Thanks alot!
@riyapatel17
@riyapatel17 4 жыл бұрын
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
@jer254
@jer254 4 жыл бұрын
Very creepy floating head... I love it LOL
@arbazkhan-od9sk
@arbazkhan-od9sk 4 жыл бұрын
I love the music at the end
@AyushSinghxda
@AyushSinghxda 4 жыл бұрын
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 жыл бұрын
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 жыл бұрын
@@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.
@zacharyzanger9104
@zacharyzanger9104 4 жыл бұрын
Floating head for the win! Love the video... Thanks!
@esseifforte
@esseifforte 4 жыл бұрын
Hi! thank you so much! How to slow down and block scrolling with ease when reach to the edge of start and end document?
@Abdullah_Osama
@Abdullah_Osama 4 жыл бұрын
happy to meet you gary timeline
@Abhishek-dp5tc
@Abhishek-dp5tc 4 жыл бұрын
How can i add this to my react
@freshwire
@freshwire 4 жыл бұрын
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 10 күн бұрын
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
@SherwinlouwZa
@SherwinlouwZa 5 ай бұрын
how do we work with scroll events now using this?
@sahilsinghhtc
@sahilsinghhtc 4 жыл бұрын
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?
@Trazynn
@Trazynn 4 жыл бұрын
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.
@whimsy5623
@whimsy5623 2 жыл бұрын
chad
@codewithegai
@codewithegai 2 жыл бұрын
@@whimsy5623 Lmao
@gaurabdhakal13
@gaurabdhakal13 3 жыл бұрын
Is there a way to get this smoothness in a wordpress website
@EliSamba
@EliSamba 3 жыл бұрын
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 жыл бұрын
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.
@CreativeB34ST
@CreativeB34ST 4 жыл бұрын
Does anyone have experience if this library works well on mobile with touch swiping?
@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
@bloodtusk7160
@bloodtusk7160 2 жыл бұрын
Pls help me. How to turn off the scrollbar completely?
@FarukAhmed-pc5hn
@FarukAhmed-pc5hn Жыл бұрын
What about fixed elements? Position: fixed not working!
@vitus6644
@vitus6644 4 жыл бұрын
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:
@grxvethreat903
@grxvethreat903 2 жыл бұрын
Hey! how make fixed position with smooth-scroll?)
@SohailKhan-tc8uz
@SohailKhan-tc8uz 4 жыл бұрын
Nice t-shirts bro
@heinekhalwin8735
@heinekhalwin8735 4 жыл бұрын
How do u even find all these cool js libraries ? Awesome video !
@ThatGuyAnonymous
@ThatGuyAnonymous 4 жыл бұрын
The floating head freaked me out, I was reading something on a different tab then I switched to this one.
@Kevzz2srs
@Kevzz2srs 4 жыл бұрын
Man so glad ublock exists else I would've gone insane from websites having their own comedian scrolling speeds shits just annoying.
@kangzoel8717
@kangzoel8717 4 жыл бұрын
Smooth scroll makes me feel weird
@sebastianf9831
@sebastianf9831 4 жыл бұрын
OMGGGGG FINALLY!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
@farvessafiyudeen0741
@farvessafiyudeen0741 2 жыл бұрын
Hey guys does anyone know how to change color of the smooth scrollbar.js?
@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
@DDesigner123
@DDesigner123 3 жыл бұрын
can you paste the cdn version I want to see if I can get this working in wordpress for a client. Thank you.
@arghyabanerjee900
@arghyabanerjee900 3 жыл бұрын
Are you a guitarist along with a developer 😍😍😍😍😍😍...??????
@DirePantsDim
@DirePantsDim 3 жыл бұрын
Very informative, but due to the "highjacking" of the scroll function of the browser, this plugin makes any sticky navbar immobile.
@FarukAhmed-pc5hn
@FarukAhmed-pc5hn 3 жыл бұрын
I've tried this but this plugin confilcts with other jquery plugins!
@DavidMartins1
@DavidMartins1 3 жыл бұрын
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
@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?
@Bakkali.Soufian
@Bakkali.Soufian 4 жыл бұрын
isnt it the same as scroll behaviour in css
@clleoweb4083
@clleoweb4083 4 жыл бұрын
smooth-scrollbar.js - weight does 42 kb.. ??? Why would you do that? You said 2 kb, right?
@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
@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.
@Maybehassanawad
@Maybehassanawad 4 жыл бұрын
Nice floating head
@supreetkumar7604
@supreetkumar7604 4 жыл бұрын
he looking like a ghost
@brambekkers
@brambekkers 4 жыл бұрын
Var? anno 2020?
@mbusokotobe6276
@mbusokotobe6276 4 жыл бұрын
This is awesome
@user-zd5ee
@user-zd5ee 4 жыл бұрын
Author: body { visibility: hidden; }
@CloudyyYT
@CloudyyYT 3 жыл бұрын
you dont need : after author
@jasonszsilva3489
@jasonszsilva3489 2 жыл бұрын
how to do this to php
@alperburakpusar
@alperburakpusar 4 жыл бұрын
Doesn't work right with perspective parallax..
@alaazarrouk5941
@alaazarrouk5941 4 жыл бұрын
it's not working !! please can you respond
@beinyourguard
@beinyourguard 4 жыл бұрын
what does npm init -y do? why the flag?
@josephcobbinah5412
@josephcobbinah5412 4 жыл бұрын
-y basically responds 'yes' to any questions asked during init.
@beinyourguard
@beinyourguard 4 жыл бұрын
@@josephcobbinah5412 thank you
@josephcobbinah5412
@josephcobbinah5412 4 жыл бұрын
You are welcome
@bendyamin86
@bendyamin86 4 жыл бұрын
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😂😂😂...
@SayJee
@SayJee 4 жыл бұрын
#gary { position: absolute; left: 0 bottom: 0; }
@henriquelima7958
@henriquelima7958 4 жыл бұрын
background-color: transparent;
@quickindiarecipe
@quickindiarecipe 4 жыл бұрын
parallax doesn't work with this
@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
@yasser.dev7
@yasser.dev7 4 жыл бұрын
I like you bro !
@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
@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.
@franny8480
@franny8480 3 жыл бұрын
bro not like this.... this floating head makes me nervous xD
@alex_chugaev
@alex_chugaev 4 жыл бұрын
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.
@asumiluna9066
@asumiluna9066 4 жыл бұрын
BRUH THAT CHIN
@yogeshdeveloper5346
@yogeshdeveloper5346 4 жыл бұрын
First!
@masterkhoa
@masterkhoa 4 жыл бұрын
smooth scrolling is counter-intuitive and generally annoying. REMOVE
@zorujuro192
@zorujuro192 4 жыл бұрын
Css html{scroll-type:smooth}
@nerosonic
@nerosonic 4 жыл бұрын
floating head /watch?v=HQoRXhS7vlU
@СергейКостюк-х8л
@СергейКостюк-х8л 4 жыл бұрын
import Scrollbar isn't working!
Subtle, yet Beautiful Scroll Animations
5:04
Beyond Fireship
Рет қаралды 1,8 МЛН
Using React Libraries Inside Svelte
16:55
Joy of Code
Рет қаралды 4,2 М.
Happy birthday to you by Secret Vlog
00:12
Secret Vlog
Рет қаралды 6 МЛН
Увеличили моцареллу для @Lorenzo.bagnati
00:48
Кушать Хочу
Рет қаралды 7 МЛН
Smooth Scrolling Magic: How to easy Install LENIS Library in Elementor
3:35
Creating Sick Page Transitions with Barba.js & GSAP
20:05
DesignCourse
Рет қаралды 136 М.
Award Winning Animation With Only 20 Lines Of CSS?
6:59
Hyperplexed
Рет қаралды 1,9 МЛН
Learn CSS Scroll Snap In 6 Minutes
6:39
Web Dev Simplified
Рет қаралды 147 М.
Cursor Text Editor Tutorial Simplify Component Creation
6:16
Pro Trailblazer
Рет қаралды 73
Awesome UI Interactions with the CSS Clip Path Property
16:15
DesignCourse
Рет қаралды 340 М.
Animate On Scroll With Just 3 LINES Of CSS (No Libraries Needed)
2:51
Happy birthday to you by Secret Vlog
00:12
Secret Vlog
Рет қаралды 6 МЛН