When using GSAP in production, you might have FOUC (flash of unstyled content) , you can avoid that by adding an initial CSS value like opacity: 0. You can read more here: gsap.com/resources/fouc/
@alvarobyrne8 ай бұрын
I am a beginner, just took part of one react (native) project and (as you may see for what I am about to say never did nextjs work) it surprises me that nextjs doesn't provide (never better said) a global context! Very well done! Note for self: `Component` (arg of `App`) has a `key` prop
@TheRealG-yt9yj8 ай бұрын
SIR THANK YOU VERY MUCH . as a beginner we have so many doubts and stuff . The way your content helps is just NEXT LEVEL . THANK YOU . 😊😊
@flavioczuk2 ай бұрын
Brooooo you´re a legend!!! I´ve stumbled upon the link you´ve mentioned on the video by John Polacek but I was having a hard time understanding everything... With your explanation everything is now crystal clear and I was able to update my project and implement everything that way I had planned! Thank you very much and keep up the awesome work!!!!
@wailokwang8 ай бұрын
Olivier, thanks for your vids. I just wanted to mention that the Next.js team doesn't seem to care about page transitions on app routes, even though it's been released since Next.js 13 (and since you started uploading videos). Lol.
@elcho0078 ай бұрын
Simply no words for the quality of your content, hats off to you. You are a true gem!! Thank you.
@olivierlarose18 ай бұрын
Cheers, I appreciate it
@lThePotatoCrew7 ай бұрын
If only this worked with app router :(. Great work though, your explain everything very well!
@zjebinsky7 ай бұрын
Just discovered your channel. This is golden!!
@TheBorninmotion8 ай бұрын
wow amazing example ! Please make more tuts using nextjs page router and gsap, keep up !
@edojoshua8 ай бұрын
Great work as always Oli!
@MrJfergs8 ай бұрын
I think you are one of the best Creative UI devs on KZbin if not the entire internet. Thank you for your content, I wanted to ask if you are from France? It seems that many of the devs within this niche are from France or Quebec. Merci beaucoup pour votre travail. I wanted to ask if this transition will be using the Pages or App router in next.js?
@olivierlarose18 ай бұрын
I’m from Montreal, Quebec yes and this page transition is with the page router only
@MrJfergs8 ай бұрын
@@olivierlarose1 Nice, I ma actually not too far from Montreal myself. I have yet to find a good solution for page transitions using the app router yet.
@dewann998 ай бұрын
If the "sleeper build" was a channel.
@kevyyar8 ай бұрын
What you mean
@tatyabicchu218 ай бұрын
Totally agree
@mateuspaula_dev7 ай бұрын
Thanks for this content buddy, all the best for you always!!
@olivierlarose17 ай бұрын
Cheers bro
@funstationatlanta6 ай бұрын
This is amazing! great work.
@nellymotion8 ай бұрын
so much good information, thank you
@seanzhang38736 ай бұрын
This is great, but can you make a tutorial on Framer Motion with Next.js 13+, using the new app router. I am struggle to create transition out animation and cannot find much resource on this.
@BharatBhandari-s5i7 ай бұрын
Awesome explanation, can you please also suggest a way to add Intro animation in nextjs Page Router
@rohitpandey44117 ай бұрын
your video is awesome, and your name is weird olivier. Thanks its a very simple implementation with good instincts
@devwithzain8 ай бұрын
Preloader animation olivier please 🙏
@olivierlarose18 ай бұрын
Noted!
@thisissahaj8 ай бұрын
You can find a small bit of it in the 2nd video of his playlist..Vid - "Rebuilt Awwwards Website..."
@shivkumar63748 ай бұрын
Loved to see your videos
@ridwanajibola303821 күн бұрын
Thanks a lot for this.
@olawanletemitayo21748 ай бұрын
Goated video as always ✨🎉
@electroheadfx8 ай бұрын
amazing man, thanks for the tip
@TomaszOstroga8 ай бұрын
Your content is always top-notch! Thank you. Could you elaborate on why that approach is not supported on the app router, please?
@brittonwalker73412 ай бұрын
How would you approach this if you wanted the entry animation to animate in before the old content exits? For example, have the new content swipe up over the old content and then handle the removal of the old content?
@marcelsdev7 ай бұрын
Ever thought of using or replacing GSAP with Framer Motion? Only reason I don't use GSAP for products is because some library features are priced and I can replicate them using Framer Motion. Your thoughts?
@marcelsdev7 ай бұрын
Nevermind... I see you use Framer Motion on other projects 😄 Great content! 🦾
@AntTheOne7777 ай бұрын
Hey! When will your online courses be accessible? Amazing work btw.
@fokspoks3 ай бұрын
but how nextjs doesn't ask you to add 'use client' in places where you use hooks?
@jjuuiiccyyjj8 ай бұрын
thanks for this!
@thomasfichtner97383 ай бұрын
Hey is there a way to make the animation mode sync. like play exit and enter animation simultaneously
@stoggys7 ай бұрын
Great stuff!
@hrsikeisa8 ай бұрын
Man wat camera do you use ? your videos are really sharp !
@olivierlarose18 ай бұрын
I use my Iphone haha
@dmnkb8 ай бұрын
For a real live project using Next.js would you rather recommend Framer Motion or GSAP?
@olivierlarose18 ай бұрын
Either is fine, but personally I would use Framer Motion
@eduardaskuliesa83087 ай бұрын
I have created page transitions with custom Links, and they have entry and exit animations. Everything works fine, but I don't get it why this is wrong ?
@ninjagaskin5 ай бұрын
Any idea when this would be useful for app router next js?
@xberna81568 ай бұрын
Amazing!
@spacemanXVI.5 ай бұрын
🔥🔥🔥🔥
@joostschuur8 ай бұрын
When it comes to page animations, does GSAP have any advantages over Framer Motion or vice versa?
@olivierlarose18 ай бұрын
No the final result is quite similar. I would say Framer Motion has a faster and cleaner implementation and in my experience GSAP has some FOC problems that you need to manage.
@MARSTEE-official8 ай бұрын
Nice video. It’s possible in App Router with templates. (Layouts x templates).
@PaperKrane8 ай бұрын
I wanted to say that too. Kind of confused as to why he claims it's 'hacky' by using onClick={} on top of a Next Link component.
@Ss-zg3yj7 ай бұрын
Not possible
@electroheadfx8 ай бұрын
did you already apply for Next with app version ?
@KaluKarKK8 ай бұрын
Am I mistaken, or you can use template on the app router for page transition!! 🙁
I saw this video, and like I said in the beginning of the video, I am not comfortable using this approach for a client, as it overrides the Link component with a button and an on click event, which is not good for SEO and accessibility.
@jheanbrizadao24298 ай бұрын
@liamrahimian15884 ай бұрын
Add a route outside your header and the route will stop working because of the transition component.
@quebuena1115 ай бұрын
And why the page router, that’s old stuff
@puturangga20247 ай бұрын
Can you make it again but using motion framer?
@monarchgam3r8 ай бұрын
This solution is kinda old and only works with pages router, unless it’s an old or already existing project, app is just better to use and recommended, unfortunately there doesn’t seem to be a way to do page transitions with app router
@olivierlarose18 ай бұрын
Page router gets a lot of hate for nothing haha, it still works fine for presentation type websites
@Ss-zg3yj7 ай бұрын
@@olivierlarose1 you know there's people building something else but useless awwards shitty agency websites no one using, right?
@fiha_khair_yt8 ай бұрын
I'm still waiting for web course😅❤
@olivierlarose18 ай бұрын
Coming soon! Working on new modules including shaders and complex animations
@fiha_khair_yt8 ай бұрын
@@olivierlarose1 Thank you ❤
@bhuvya118 ай бұрын
Chad video 💯💯
@DuBritoo7 ай бұрын
what’s your webcam?
@CodeCraftersStudio6 ай бұрын
Plesse update this with app router Thankyou in advance
@roguegoblin24078 ай бұрын
hey oli! sent you a discord dm with a way to these transitions in nextjs with app router :)
@olivierlarose18 ай бұрын
Hey man, thanks for the ressource. Unfortunately, you’re doing it in one of the two ways I described in the beginning of the video (page transition with an on click on a button), which is not good for SEO and accessibility. I personally would not feel comfortable using that in production for a client. As of now, if I want a page transition, I use the Page router, which still works fine for presentation websites. Cheers
@roguegoblin24078 ай бұрын
@@olivierlarose1 ohh didnt realize that was what you meant, I thought you meant a literal button, sorry!
@alexnjagi31697 ай бұрын
🤔I wouldn't recommend saving children components to the state, it might raise performance concerns for large component trees. Instead of using the state to listen for children changing, can't we just use `Router. events` from next js, and anytime we move to another page, we can perform some action.
@olivierlarose17 ай бұрын
I agree with you, but a problem I see with using router events is we wouldn’t have control over the displaying of the pages, so I don’t see how we could delay the page transition to leave space for the exit animation
@ayoubdev80198 ай бұрын
First viewer first comment , nice video oliv
@olivierlarose18 ай бұрын
Cheers bro
@Ss-zg3yj7 ай бұрын
Pages router...USELESS!
@jason.zubiate5 ай бұрын
you can do this with a template.tsx file. check next docs. basically what he's making
@Ss-zg3yj5 ай бұрын
@@jason.zubiate there's no exit transition in App Router, you 🤡
@StephenRayner8 ай бұрын
Meh page router…
@PaperKrane8 ай бұрын
You can do page transitions with app router as well using templates.
@olivierlarose18 ай бұрын
Send me a link! Would be surprised if it does not fall in either one of the two categories I mentioned in the intro
@Ss-zg3yj7 ай бұрын
@@PaperKrane no you can't
@PaperKrane7 ай бұрын
@@Ss-zg3yj Lol I wrote an entire message on this chain of how you *can* but it looks like the channel creator deleted it because it disproves his point. Research Next.js 'templates' that are rendered inside of layout.js. You can create an animation in and build your own Next.js Link component that just ads an animation on the outro and then uses Next.js router to push the next page. I have apps in production with this but hey, if you want to live in a bubble and believe it isn't possible, that is A-OK with me.
@Ss-zg3yj7 ай бұрын
@@PaperKrane templates has BROKEN exit transitions. what are you talking about? you have problems with your vision?