No video

Locomotive Scroll is Awesome - Here's how to use it

  Рет қаралды 110,748

DesignCourse

DesignCourse

3 жыл бұрын

bit.ly/3lCXoXv - Become a frontend developer (50% off limited time!)
-- Want to learn UI/UX? designcourse.com
-- Today, we're stepping back into the exciting world of frontend development to check out a JavaScript library called Locomotive Scroll. It allows you to do a number of things, but primarily it allows you to integrate a smooth / gradual scroll experience. I'm going to show you how to get it installed, and set it up with some of the many features.
Let's get started!
- - - - - - - - - - - - - - - - - - - - - -
Subscribe for NEW VIDEOS!
Learn UI/UX: designcourse.com
My personal FB account: logodesigner
Coursetro FB: coursetro
Coursetro's Twitter: / designcoursecom
Join my Discord! / discord
^-Chat with me and others
- - - - - - - - - - - - - - - - - - - - - -
Who is Gary Simon? Well, I'm a full stack developer with 2+ decades experience and I teach people how to design and code. I've created around 100+ courses for big brands like LinkedIn, Lynda.com, Pluralsight and Envato Network.
Now, I focus all of my time and energy on this channel and my website Designcourse.com.
Come to my discord server or add me on social media and say Hi!

Пікірлер: 118
@DesignCourse
@DesignCourse 3 жыл бұрын
Hey all. I will be live streaming tomorrow at 10:30am EST on the FreeCodeCamp youtube channel!
@LabhamJain
@LabhamJain 3 жыл бұрын
Already Waiting To See You On freeCodeCamp 😍
@shinomitsu7798
@shinomitsu7798 3 жыл бұрын
Best news of the day! Congrats and I hope this will bring even more people to your channel, you deserve that!
@abhayganti8662
@abhayganti8662 3 жыл бұрын
The new Intro is sooooo dope !! Love this video as always Gary !!!
@tomaszprabucki4251
@tomaszprabucki4251 2 жыл бұрын
I love your channels, thanks to You, my projects become 200% better
@reignsvicky
@reignsvicky 2 жыл бұрын
Every single one of your videos Im enjoying dude, You doing great joB!!!!!!!!!!!!!
@christinetreacy1744
@christinetreacy1744 3 жыл бұрын
Really, really appreciated this video! I've been struggling to get locomotive-scroll to work and your walk-through was simple and easy to follow. I also used Parcel and scss for the first time too so woohoo! :) Thank you!
@tekemutau6583
@tekemutau6583 3 жыл бұрын
Hi Christine could you please help me get locomotive scroll to work. right after typing npm init -y i got this error =======> The term node is not recognized as the name of a cmdlet..................................
@christinetreacy1744
@christinetreacy1744 3 жыл бұрын
@@tekemutau6583 Found this stackoverflow thread about that error. stackoverflow.com/questions/30318628/the-term-node-is-not-recognized-in-powershell
@Ree-rr1js
@Ree-rr1js 2 жыл бұрын
This floating head make a realy good point 👌🏻 Good job!
@jrhager84
@jrhager84 3 жыл бұрын
I've been searching and searching for a react smooth scroll package, and the fact that this one has parallax is a double-win! Awesome!
@alessandrospiridigliozzi7943
@alessandrospiridigliozzi7943 2 жыл бұрын
this is exactly what I needed!!!
@sashaanksekar441
@sashaanksekar441 3 жыл бұрын
Dope intro. Liked this one the best
@reignsvicky
@reignsvicky 2 жыл бұрын
Thank you so much , you sharing lot of knowledge
@AnirudhIsOnline
@AnirudhIsOnline 3 жыл бұрын
Great video 👍
@tarikjamil7
@tarikjamil7 3 жыл бұрын
hello there! i tried the locomotive animation and it works perfectly, however there is one element i can't figure out, it's the anchor link, so when i try a "go back to top" kind of button, it doesnt work with locomotive, any idea how to do that ?
@raghavvarman6142
@raghavvarman6142 3 жыл бұрын
Thank you so much 😍
@MichaelTurpinAV98
@MichaelTurpinAV98 3 жыл бұрын
Looks Interesting, even just to manage transitions for elements entering the screen, has anybody tried it and know what the performance is like? I'm also wondering about how the parallax would cope responsively and with longer content. It could be really useful.
@muhamedkarajic
@muhamedkarajic 7 ай бұрын
Good video!
@parasarora5869
@parasarora5869 3 жыл бұрын
that's one awesome library 😱😱😍😍
@AbdulBasit-xn9ld
@AbdulBasit-xn9ld 3 жыл бұрын
Love the new intro
@maelar1605
@maelar1605 2 жыл бұрын
Thank you for the video, I have a question : To be able to run the parcel command we have to set our execution policies to "AllSigned", isn't it dangerous concerning malicious scripts ?
@mrconcept
@mrconcept 2 жыл бұрын
Thanks for this excellent tut. How do you change the direction of the horizontal scroll? I do data-scroll-direction="horizontal" and it moves right to left but not aure how to reverse it so it goes left to right?
@tommieirl1
@tommieirl1 Жыл бұрын
thank you !
@maxdevgenius5469
@maxdevgenius5469 3 жыл бұрын
waouh a new intro very cool tuto prof
@jbink6612
@jbink6612 3 жыл бұрын
used it yesterday without success ... so thank you ;)
@alimagnetic-iransenigma9647
@alimagnetic-iransenigma9647 3 жыл бұрын
thanks it's pretty well explained. can you do a video on how to make it work on nextjs ?? it gives an error on scrollId undefined which i cannot solve. thank you.
@anandgaurav5398
@anandgaurav5398 3 жыл бұрын
Hey, thank you for your tutorials, It helps a lot to students like us can you give us a tutorial on "adding locomotive scroll to Wix Dev mode"
@ShubhamPathakThings
@ShubhamPathakThings 3 жыл бұрын
did you find anything?
@somedev1553
@somedev1553 3 жыл бұрын
What was the id my-section for in the section tag, I think u forgot it?
@lorenzofranzone7231
@lorenzofranzone7231 3 жыл бұрын
hello, thanks for your tutorial! I've a problem: followed step by step your code, elements are detected in viewport and "data-scroll-class" works well but "data-scroll-speed" not... any suggstions? Thank you
@evroskate
@evroskate 3 жыл бұрын
That base in the intro though!
@AdrianTwarog
@AdrianTwarog 3 жыл бұрын
Nice
@swatideshpande2547
@swatideshpande2547 3 жыл бұрын
Can you please make a tutorial on Onsen UI framework . There are not many resources available for this
@srdjan02
@srdjan02 3 жыл бұрын
Hi, TNX so much for this tut. It's great. However I run in to a problem. How would you "set" parallax elements in locomotive to be diagonal like in the locomotive demo website?
@TravisJohnson
@TravisJohnson Жыл бұрын
If you look at the code in the demo, the scroll direction is horizontal. The elements themselves are transform rotated via CSS. When the horizontal movement happens via locomotive, it appears like it is moving diagonally.
@oaooaoipip2238
@oaooaoipip2238 3 жыл бұрын
Hi Gary. What is that white stuff on your arm and on your t-shirt?
@CiscoZero
@CiscoZero 2 жыл бұрын
How do you know so much? When does all of it start coming together? Do you just do research and figure it out, or do you remember everything off the top of your head?
@nasiy
@nasiy 3 жыл бұрын
I love Locomotive scroll. Unfortunately not sure how to implement it in Webflow. Great video though!
@valiibraimi195
@valiibraimi195 3 жыл бұрын
is possible to use with angular or react (I USE ANGULAR)
@hypelightsband
@hypelightsband 2 жыл бұрын
Hey! thanks for your video! One question, for some reason activating locomotive somehow disable my back-to-top script which allowed my to click a button and go back to the top of my page.. Any guess?
@tyrellwreleck4226
@tyrellwreleck4226 3 жыл бұрын
i was thinking horizontal scroll. with a left and right arrow navigation. some people gets lost scrolling in mobile viewport.
@bhavyatrivedi6310
@bhavyatrivedi6310 3 жыл бұрын
can you please show how to use locomotive scroll with Three.js...I am struggling with that and cannot figure out how to do it
@tanrupoh7332
@tanrupoh7332 Жыл бұрын
Hi, can it be used in typescript?
@terencecleric1813
@terencecleric1813 2 жыл бұрын
How to replace scrollbar, what is automatically eliminated by this awesome software?
@DafterHindi
@DafterHindi 3 жыл бұрын
Made my website smooth
@DafterHindi
@DafterHindi 3 жыл бұрын
I'm 13
@DafterHindi
@DafterHindi 3 жыл бұрын
@Not Howdy good luck too
@teuccio73
@teuccio73 2 жыл бұрын
chan you help me to add locomotive scroll to wordpress ? Thanks
@lindgrenYT
@lindgrenYT 3 жыл бұрын
I only get this to work on localhost, not in live server.. Does anyone know why? 😅
@Knuddelfell
@Knuddelfell 3 жыл бұрын
Nice intro
@danieladekoya1224
@danieladekoya1224 3 жыл бұрын
NOICE !!
@sourabh2505
@sourabh2505 Жыл бұрын
im having an issue with locomotive scroll and from alot days im trying to fix this can you help me plzzzzzzzzzzz?
@Bilbok_
@Bilbok_ 3 жыл бұрын
someone know to implement locomotive scroll with vuejs ?
@e-fanierh2369
@e-fanierh2369 3 жыл бұрын
anyone know how to get it to work on localhost?
@stanimeercat2530
@stanimeercat2530 3 жыл бұрын
At the beginning of the video did his T-shirt and arm have some white paint marks?
@DesignCourse
@DesignCourse 3 жыл бұрын
Did you not see the very brief comment about that I made in the video at 0:17 ??
@remixowlz
@remixowlz 3 жыл бұрын
I got this error "Uncaught SyntaxError: Cannot use import statement outside a module"
@thefunstars6793
@thefunstars6793 3 жыл бұрын
hi, i might be abit late to reply but its because you need to use a bundler. I recomend you use parcel.js. DesignCourse also has a tutorial on how to use that. Hope i helped!
@TheChilllin
@TheChilllin 3 жыл бұрын
in this case just add "type": "module", in the package json this should work, the error belongs to nodejs default require but now import is supported by adding the line provided.
@capyeris
@capyeris 3 жыл бұрын
How to credit video intro
@tekemutau6583
@tekemutau6583 3 жыл бұрын
right after typing npm init -y i got this error =======> The term node is not recognized as the name of a cmdlet.................................. How do i fix this??
@brianorbino6910
@brianorbino6910 3 жыл бұрын
sir i get Uncaught TypeError: Failed to resolve module specifier "locomotive-scroll". Relative references must start with either "/", "./", or "../".
@lindgrenYT
@lindgrenYT 3 жыл бұрын
Yo Brian! Did you solve this?
@chriskang7124
@chriskang7124 3 жыл бұрын
I got the same issue
@brianorbino6910
@brianorbino6910 3 жыл бұрын
@@lindgrenYT i try another libraries
@jasonszsilva3489
@jasonszsilva3489 Жыл бұрын
howto use it without parcel
@DerMBen
@DerMBen 3 жыл бұрын
Today I learned: Chrome has smooth scrolling integrated and activated by default...
@sabrina-br5zu
@sabrina-br5zu 9 ай бұрын
why did you not include the link to the github
@FordHenley86
@FordHenley86 3 жыл бұрын
Do I have to use npm to use this?
@ahmadmuslih
@ahmadmuslih 3 жыл бұрын
You can just copy the javascript code
@eh-lo2do
@eh-lo2do 3 жыл бұрын
I'm just confused why you add multiple sections ? can't you just ass the smooth to the whole body ?
@JMIK1991
@JMIK1991 3 жыл бұрын
Not a fan. I like my browsers current smooth scrolling. Don't want websites add additional smooth script to change my browser default behaviour. But I do get that some web applications could present something differently with this.
@bossysmaxx3327
@bossysmaxx3327 3 жыл бұрын
it's not working properly, not scrolling scrollbars are hidden and page is stuck at top of the page can't scroll page at all
@yandahomesandinvestments1869
@yandahomesandinvestments1869 Жыл бұрын
you didnt drop the link to the github
@ericmiyan3466
@ericmiyan3466 Жыл бұрын
I followed every step but somehow now i cant scroll at all :(
@safsafaf2838
@safsafaf2838 3 жыл бұрын
Hello, can someone help please? it doenst work for me, i did excatly same things as Gary.. in console i have: Uncaught SyntaxError: Cannot use import statement outside a module .. and in my index.js is --> '
@lindgrenYT
@lindgrenYT 3 жыл бұрын
Hey! did you find a solution??
@safsafaf2838
@safsafaf2838 3 жыл бұрын
@@lindgrenYT hi, not really, i also tried it by making parcel, and a lot other stuff, but it didnt work, if you will find out, please let me know :)
@shahbazhusain8612
@shahbazhusain8612 3 жыл бұрын
Did anyone solve this issue yet?
@safsafaf2838
@safsafaf2838 3 жыл бұрын
@@shahbazhusain8612 nop :( but let me know if you do pls
@lindgrenYT
@lindgrenYT 3 жыл бұрын
@@shahbazhusain8612 ​ @idontwannashareyou I downloaded the whole project file from Locomotive Scroll and lanched a live server from that index.html and that worked. I just copied all the locomotive code from that folder into my project and then it worked, not sure what it was but that's one workaroud 😅
@shkrmkr
@shkrmkr 3 жыл бұрын
cool shirt
@jeelpatel5791
@jeelpatel5791 3 жыл бұрын
Hey, as the end note, you should tell your viewers to also read the docs, because if you're gonna make a video for every js library, then no one will be able to read the docs, and its so important to have ability to read docs and do accordingly, Hope you'll consider that!
@leflyingcarpet
@leflyingcarpet 3 жыл бұрын
He already did. 16:35
@mihailodukic601
@mihailodukic601 2 жыл бұрын
Best ways to use locomotive scroll for mobile devices? It seems to break ...
@akshy471
@akshy471 3 жыл бұрын
A flotaing head?
@jvcmarc
@jvcmarc 3 жыл бұрын
I hate websites that mess with the scrolling it's just a very bad UX that goes against what the users are already used to it's nit intuitive and feels like website is fighting against the user
@choonah
@choonah 3 жыл бұрын
nice! how do you implement it in webflow?
@ArtSzabo
@ArtSzabo 3 жыл бұрын
check out t.ricks tut on this.
@user-mq7nd5pq9q
@user-mq7nd5pq9q Жыл бұрын
Голова профессора Доуля))
@damianhajdukiewicz8769
@damianhajdukiewicz8769 3 жыл бұрын
Someone tried it with bootstrap ?
@user-xd3ez1gd5u
@user-xd3ez1gd5u Жыл бұрын
5:40
@user-xd3ez1gd5u
@user-xd3ez1gd5u Жыл бұрын
13:41
@georgenaranjo5704
@georgenaranjo5704 3 жыл бұрын
yoo does anyone notice his head is floating?
@vishallondhe7298
@vishallondhe7298 3 жыл бұрын
It's the new css library he's using 😂😂😂...
@priyanzhu
@priyanzhu 2 жыл бұрын
Can any one here will teach me to how to install locomotive scroll like gary did cuz it ain't happening with me how to install like that :(
@deepak8586
@deepak8586 2 жыл бұрын
Use cdn
@priyanzhu
@priyanzhu 2 жыл бұрын
@@deepak8586 get me the cdn plz?
@Viralplace
@Viralplace 3 жыл бұрын
But why ? I make that with 1 line of css
@abhayganti8662
@abhayganti8662 3 жыл бұрын
Viralplace It offers a whole array of functionalities, can u create a parallax effect with one line ? I Guess not. How about the custom scroll bar which is way cleaner than the the default one and it improves the user experience overall !! Hope this helped
@adeleke5140
@adeleke5140 3 жыл бұрын
Ohh, what's the syntax?
@wotomy
@wotomy 3 жыл бұрын
that is nice transparent shirt
@isaakcarteraugustus1819
@isaakcarteraugustus1819 3 жыл бұрын
The npm doesn’t work. It says it doesn’t recognizes it???
@yuck59
@yuck59 3 жыл бұрын
had the same issue, you can go into the github repo, click on the 'dist' folder, copy and paste the 'locomotive-scroll.min.js' file into a js file in your project, link it to your html and then you have the library!
@isaakcarteraugustus1819
@isaakcarteraugustus1819 3 жыл бұрын
@@yuck59 it worked :D thx
@luxgroove480
@luxgroove480 3 жыл бұрын
@@yuck59 after doing so it says LocomotiveScroll is not defined
@yuck59
@yuck59 3 жыл бұрын
@@luxgroove480 you need to link your locomotive library before the 'new LocomotiveScroll()' code
@yuck59
@yuck59 3 жыл бұрын
@@luxgroove480 did it work?
@LabhamJain
@LabhamJain 3 жыл бұрын
Again Floating Head 🤣
@commitmaster4543
@commitmaster4543 3 жыл бұрын
He's Beginning to Believe
@h3m541
@h3m541 3 жыл бұрын
Nowadays floating head is *normal*
@uimonk
@uimonk 3 жыл бұрын
10% locomotive 90% html, css..
@wioetuw912
@wioetuw912 3 жыл бұрын
I really, REALLY hate it when websites mess with the scroll functionality. There's already a built in browser setting to enable or disable smooth scrolling and mine is turned off for a reason.
Mastering Scroll Animations with GSAP ScrollTrigger
23:02
DesignCourse
Рет қаралды 120 М.
Awesome Scrolling SVG Line Drawing - How they did it!
21:45
DesignCourse
Рет қаралды 255 М.
MISS CIRCLE STUDENTS BULLY ME!
00:12
Andreas Eskander
Рет қаралды 21 МЛН
Box jumping challenge, who stepped on the trap? #FunnyFamily #PartyGames
00:31
Family Games Media
Рет қаралды 24 МЛН
A little girl was shy at her first ballet lesson #shorts
00:35
Fabiosa Animated
Рет қаралды 17 МЛН
Awesome UI Interactions with the CSS Clip Path Property
16:15
DesignCourse
Рет қаралды 337 М.
Subtle, yet Beautiful Scroll Animations
5:04
Beyond Fireship
Рет қаралды 1,7 МЛН
It's time to design your portfolio - CHALLENGE!
7:15
DesignCourse
Рет қаралды 4,9 М.
UI/UX Form Design DO's and DON'Ts! Review
11:15
DesignCourse
Рет қаралды 4,8 М.
Full Dark Mode with only 1 CSS PROPERTY?!
12:49
DesignCourse
Рет қаралды 156 М.
MISS CIRCLE STUDENTS BULLY ME!
00:12
Andreas Eskander
Рет қаралды 21 МЛН