Build a Smooth Parallax Scroll with Framer Motion, Lenis Scroll, Nextjs

Поділитися
Вставка
  • Опубліковано 5 жов 2024

КОМЕНТАРІ • 159

  • @by_huy
    @by_huy Рік тому +24

    Man you are filling the hole that we're missing in the community right now, it's amazing that you're digesting these animations and recreate them on your own. I'm wondering what's your process in recreating the animations/UI effects that you see?
    Other than that keep up the amazing work man, you've got my support as a dev & designer 🔥

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

      Hey glad to you see here! Your videos are super nice too. And I don’t really have a specific process, I just go with my intuition and trial and error. It can take me 2-3 days at time and sometimes I’m unable to recreate or it ends up being super complex / messy so I leave it aside. Sometimes when I have no clue I either use the dev tools to try to understand how they did or I sleep on it and I usually wake up with an idea.
      You keep working on your videos as well my friend the community needs people like you too!

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

      @@olivierlarose1 Super insightful Oliver, perhaps people will find it really helpful to see your intuition and trial & error in a video! I would love to see it haha...
      Also, thank you for your kind words

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

      @@olivierlarose1 same process on me, there's a time that I don't have any idea because of the continuous trial and error working more than 8 hrs then I will sleep then when I wake up suddenly new idea will come up, also I do the same on trial and error I inspect their website 😁

  • @wondays654
    @wondays654 Рік тому +40

    This channel is a hidden gem.

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

    Glad the youtube algo sent me here, you explain really good all the steps and this tutorial is high quality

  • @zillalsenmesrane1022
    @zillalsenmesrane1022 11 місяців тому +3

    Your animations are something else bro thank you for everything keep up the good work

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

    I love all of your ideas to recreate any animation using library ❤

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

    Amazing content - latest technologies, breathtaking animations, awesome discord server ! THANK YOU SO MUCH.

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

    You're my role model. OMG!!!
    Thank you so much for these contents.

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

    Another great one from Oli, keep it up man you rock!!😍😍

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

    Waiting for next tutorial, to learn complete gsap & framer motion.

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

    Thank you so much. I was trying a lot to convert the y scroll value to a axis value, it finally works now :)

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

    here for the page transition animation waiting room ❤ Great video

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

      Haha waiting for that too! I’m releasing a video as soon as they fix it

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

    Sheeeeesh! So easy to follow! New favourite channel

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

    God bless you!! This channel is by far the best I found in a long time on youtube its like a fking treasure box

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

    Wait till I use all of your videos knowledge into my portfolio really soon. Just jumbled up in multiple projects

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

    Dude -- phenomenal video. Loved getting to do a code-along here.

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

    Great,thanks. Please create more tuts showing these types of animations that are not just 'brutalist' in style.

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

    Damn! Really nice channel you have got there! Nicely paced videos and tons of usefull tips.

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

    Great content! short story - I asked the dev team on Twitter that created Lenis and requested a tutorial with Next.js. They said they do not have one...

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

    Mec, tu expliques trop bien et les skills que t'abordent sont très intéressants, big push pour toi ☺

  • @АртёмМокринский-ц9е
    @АртёмМокринский-ц9е 9 місяців тому

    your content is unique, thank you

  • @aymenbachiri-yh2hd
    @aymenbachiri-yh2hd 3 місяці тому

    THanks, please keep posting videos like this

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

    you're too good🙌

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

    You're amazing !!!!
    I really like the way you explaining things, do you have any courses? or at least working on making one?

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

      I'm working on one! You can see it here: blog.olivierlarose.com/courses/web-animation-course

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

    Great tutorial! Thanks!

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

    thank you Olivier you are awesome

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

    Bro .... Soo cool.
    Can't wait to see more.... 🔥

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

      Cheers!

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

      ​@@olivierlarose1 Also I have a list of these amazing websites that I saved for the remakes

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

    Noice, thank you for the amazing content!

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

    Thanks youtube algorithm for showing me this!

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

    Greet work man, you should make an animation course

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

    we wanna react tuto with gsap

  • @AhmadMughal1
    @AhmadMughal1 10 місяців тому +2

    I have a question and you seem to be the only person that is actually doing content related to this. Is there some way to implement this type of smooth scroll to the whole Next.js application without making it a client side component?
    All i want is this smooth scroll for all the application but making the whole app client side defeats the purpose of using Next.

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

      It won’t make the app client side tho. Don’t confuse client component and client side rendering, those are two different things and there seems to be a lot of confusion and misinformation related to that.
      If by “defeats the purpose of using Next” you mean not having your pages pre-rendered on the server, specifying “use client” WILL STILL allow Next.js to pre render the html. However, if you start putting a fetch call inside a use effect, then that data won’t be pre rendered. Hope that makes sense.
      So to answer your question, there is no way of having a smooth scroll on the whole app without specifying the “use client”. However, you can put a smooth scroll high up in your hierarchy and thus making most of the children components “client components” (not client side rendering) and it will pre render your html.

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

      @@olivierlarose1 Thank you for replying and clarifying the confusion. i had Client Components and Client Side Rendering confused as i assumed anything marked with "use client" was also client side rendered. Now i understand the content that might be asynchronous is what will not be pre rendered but the rest of the "shell" should.
      Thanks again for helping with my ignorance.

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

      @@AhmadMughal1 All good I was actually very confused as well at the start!

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

    I just want to know why you don't choose TailwindCSS integrated in Next.js for your projects. I love your content and creativity, keep it up :)

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

    thanks a lot , please make a tutorial using locomotive scroll

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

    your work is so fucking gnarly bruz keep it up

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

    Hi, love your channel, we don't get to see that type of content very much !
    Could you also add some info about the responsiveness of these types of animations / projects ? It's usually hard to get them to adapt to a mobile layout.
    (also if you're french Salut !)

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

      Salut oui je parle français :) and sounds good thanks for the feedback I'll make sure to spend some time on that part for the next videos!

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

    Super awesome content!

  • @TGGL-f8k
    @TGGL-f8k 11 місяців тому

    Man this transition is something for real. I just wanna implement this smooth parallax scroll in tailwind. Has anyone tried in tailwind?

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

      It's definitely possible, won't change anything just the way you do the styling

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

    Amazing!

  • @JiNx-yf1ef
    @JiNx-yf1ef Рік тому

    Great video as always ❤, could you please make a video about nextjs 13 page transition I'm having trouble achieving exit animation

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

      It's not your fault haha the exit animations are broken right now in Next 13. Go thumb up the issue! github.com/vercel/next.js/issues/49279

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

    Aahhhhhh lets gooooowwwww Framer Motion 🎉

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

    Great one 🎉

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

    You're the best!

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

    Hi this is absolutely amazing
    But wanna ask how can i make the same thing on react js

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

    Instead of each column having y= {y}, {y2}, {y3}, {y4}, could you not just edit the y={y}, y={y*1.5}, y={y*2} etc? Great video by the way

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

      It might seem like you can do that but the {y}, {y2}, y{3} etc are not numbers they are motion objects so you can’t multiply them with something else

  • @FernandaMartinez-ht7er
    @FernandaMartinez-ht7er Рік тому

    Hey Olivier, thank you for your effort in creating this unbelievably good and inspiring content, it really stands out among all the channels I've came across. I'm quite curious about your approach to CSS. Do you think it's achievable to replicate your techniques using Tailwind or it would be too restrictive?

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

      Hi, you could achieve the same result with tailwind as well and possibly faster too. I don’t use tailwind in my tutorials not to bloat the JSX (so that it’s easier to read essentially). But you could achieve everything with tailwind no problem.

    • @TGGL-f8k
      @TGGL-f8k 11 місяців тому

      Hi Dear, Did you implement this project in tailwind ?

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

      @@TGGL-f8k Not as of yet!

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

    Top notch content. Now every week im waiting for another awwwards hack tutorial xD. Huge respect for all the effort and hard work you are putting in your videos. Im learning a lot from your videos and your open repos. Keep going, you are creating really awesome content: Kudos !

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

    thanks buddy❣

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

    Muito bom! Um salve do Brasil. Continue com o ótimo trabalho

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

    Loved it subed it

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

    that was great❤❤❤❤

  • @جوادجیتی
    @جوادجیتی Рік тому

    i love it

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

    Another greate video. But why you are not using tailwind ?

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

      I love tailwind it saves a lot of time but in the end tailwind does not enable anything new so I assume it's not a biggie for the viewers and also I like to separate the styling from the JSX for readability.

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

    i have actually used lenis before , but not like this. i saw a similar video where the video creator uses it as a component where he intantiates the reactlenis . but the component is a use client and then he uses it to wrap the layout.jsx children. does that make all the components inside layout.jsx client components. how to solve this issue.?
    your take on using lenis is better , but the problem here is that i have to initialize a new lenis object everytime i create a component,
    i am really confused how to use the lenis scroll in nextjs effeciently so that it doesnt effect the server side rendering and is easy on dx

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

    GOAT

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

    great content!!! I wanted to apply this in my react project but the next/image does not exist in react, could someone please tell me how to replace it with img i changed the fill attribute to width and hight but it didn't work ?

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

    Amazing work . I completed this but i am having some kind of breaking glitch in mobile device . And if u scroll slowly in desktop u will also see it there . Please take a look . Waiting for your response.

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

      Hey! Glad you like the videos. Basically I did not make this animation responsive so it won’t work in mobile as is, you’ll need to tweak the css to make it work. The visual bug you’re talking about when scrolling slowly is related to the way Lenis scroll does their scroll interpolation, there’s not much we can do to fix that unfortunately, but I personally found it quite negligible. Cheers!

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

      How can i minimize the breaking effect in mobile.

    • @lasse-mo
      @lasse-mo Рік тому

      I managed to remove the glitch by adding options to the roo Lenis Wrapper:

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

      @@lasse-mo Normalize wheel seems like it was removed. Is it still working for you? Oddly enough for me, when I remove Lenis from the project it's jerky on mobile AND desktop.

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

    You should change your vscode settings and make the font bigger. I can’t read what you have in your vscode = Im not gonna watch it

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

    Thank you for this video , i tried to use Lenis but it has some problem with the scroll , it keeps handing on scroll , when i try to scroll it start the scroll after 1s without any smoothing or somethin even if i added duration or easing it has the same problem , I am using latest NextJS 13 with index.js page folder

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

      Not sure I understood your problem, join the discord you’ll be able to find help there

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

    So basically, if i want to animato something in nextjs now it has to be client side, so no SEO, this is frustrating

    • @olivierlarose1
      @olivierlarose1  11 місяців тому +1

      That’s not true. Don’t confuse client components and client side rendering

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

      Thats not clear for me, whats the diference@@olivierlarose1

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

    I hope there's a mobile responsive design

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

      Not currently! But it’s definitely possible to make one

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

      @@olivierlarose1 I already make it responsive in mobile but it took a lot extra work 😅 I check the website where you inspired that animation that's why I make it, but somehow I'm not satisfied so many things to adjust from mobile to desktop like the height of viewport of the container, also the speed of scrolling of the Y value, I can't figure out how did the website where you inspired is responsive even mobile to desktop it's like the speed of scrolling is the same it's not changing, I explore and explore by inspecting the website then I noticed the height of the container is same from mobile to desktop and also the size of the column (image) it's the same from mobile to desktop and still responsive how's that possible 😕 I hope you can make a part two of this video if you already figured it out that responsive column (image) also for the dynamic Y value even changing the height of container it's still the same the speed

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

      @igmtink definitely need to tweak a couple of things. I’ll let you know if I have a mobile version of it

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

      @@olivierlarose1 thank you ❤️ this kind of youtuber deserve more supports / subscriber, I have seen other youtuber and it's not like you that active on your supporter like you answering our questions 🙂

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

      I appreciate it :)

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

    Could you increase the font size of your code it's not quite visible on small devices.

  • @userj-s2000
    @userj-s2000 10 місяців тому

    V good

  • @devyb-cc
    @devyb-cc Рік тому

    any plan to exploring 3d world?

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

      Yes very soon! Around September is my plan

    • @devyb-cc
      @devyb-cc Рік тому

      @@olivierlarose1 looking forward to it 🙌

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

    😍

  • @testingtesting-d3t
    @testingtesting-d3t Рік тому

    Isn't it necessary to add the lenis css?

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

      It’s recommended but not necessary! I tried with and without and didn’t see a difference for this specific case. Let me know if you find a case where it’s necessary I’d be curious. Cheers!

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

    Hey! Amazing Effect but it is not responsive. Please do something, only you can save me !!!

  • @MahabubHossain-qq7ut
    @MahabubHossain-qq7ut Рік тому

    Great video. I'm working on a next Js and Typescript project, How can I modify the scroll-speed in lenis? This is my current code const lenisRef = useRef(null);
    useEffect(() => {
    const lenis = new Lenis();
    lenisRef.current = lenis;
    function raf(time: number) {
    lenis.raf(time);
    requestAnimationFrame(raf);
    }
    requestAnimationFrame(raf);
    }, []);

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

      When you create the Lenis instance you can add an option for « lerp » and tweak the speed with that

    • @MahabubHossain-qq7ut
      @MahabubHossain-qq7ut Рік тому

      thank you

  • @DavidAdewale-n4y
    @DavidAdewale-n4y 11 місяців тому

    why do you rush? it's hard to learn at that speed

    • @DavidAdewale-n4y
      @DavidAdewale-n4y 11 місяців тому

      I honestly would need to subscribe to you. And if you are going to ever create a course in the future where you take us step by step into these libraries and understanding how they work behind the scenes and how to use them.. I will buy that course

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

      Thanks for the feedback!

    • @olivierlarose1
      @olivierlarose1  11 місяців тому +1

      For sure! I have a course in construction here: blog.olivierlarose.com/courses/web-animation-course

    • @DavidAdewale-n4y
      @DavidAdewale-n4y 11 місяців тому

      @@olivierlarose1 signed up!

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

    "404 This page could not be found. " this is showing in your demo.

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

      Thanks for the heads up! I fixed it

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

      ok its working but make sure to update the link in description bcz its not working...but the original one from the site is working so just make sure to update the link@@olivierlarose1

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

    too fast