How to Add Page Transitions in NextJs 14

  Рет қаралды 43,809

Hamed Bahram

5 ай бұрын

In this video, we'll add page transitions in NextJs 14 using the App router and framer motion.
👉🏼 The Ultimate NextJs 14 Course
→ www.hamedbahram.io/courses/nextjs
👉🏼 Project source code (Github)
→ github.com/HamedBahram/next-page-transition
👉🏼 NextJs starter kit (Github)
→ github.com/HamedBahram/next-ts
👉🏼 Work with me
→ www.hamedbahram.io/hire
Chapters
0:00 Intro
0:25 Project setup
2:25 Add transition component
5:00 Add template file
8:24 Recap

Пікірлер: 199
@hamedbahram
@hamedbahram 5 ай бұрын
Clarification: Using a template doesn't cause your entire app to re-render on navigation. Your page server components will still use the cache. The only thing re-rendering is the template file itself. You can test this by adding a `new Date()` in one of the page components, then build your project, and start the production server by running `npm run start` and you'll see the date remains unchanged on the page which means we're are using cache and not re-rendering the page components.
@gabrielbianchi2246
@gabrielbianchi2246 5 ай бұрын
Thanks for the clarification
@lindsayaiello501
@lindsayaiello501 4 ай бұрын
Thank you for the clarification. I was going to ask if this negatively affects page speed or SEO, but it sounds like it shouldn't correct?
@hamedbahram
@hamedbahram 4 ай бұрын
@@lindsayaiello501 That's correct Lindsay.
@madcoda
@madcoda 4 ай бұрын
Good to know, clear my worries immediately, thanks
@alishayegh7047
@alishayegh7047 5 ай бұрын
so many times looking for page transitions in the app router, again, you helped me to handle it like support i18n that I've learned from you, keep up bro💪MOKHLESIM
@hamedbahram
@hamedbahram 5 ай бұрын
Glad I could help! Eraadat 🫡
@A41417
@A41417 5 ай бұрын
Your videos always teach me something new! In support of your course, I just brought it🤝
@hamedbahram
@hamedbahram 5 ай бұрын
I'm glad you find the videos helpful, Alan! Thanks for your support 🙌🏼
@garytraffanstedt
@garytraffanstedt 5 ай бұрын
Thank you for this!! You lay it out in a very clear and concise manner. I just implemented it in my current project and it works great. Cheers!!
@hamedbahram
@hamedbahram 5 ай бұрын
Glad to hear that!
@user-mg4kg4vh5e
@user-mg4kg4vh5e 5 ай бұрын
Short and to the point, thank you.
@hamedbahram
@hamedbahram 5 ай бұрын
My pleasure!
@michaelibinola4679
@michaelibinola4679 3 ай бұрын
Thank you for this short and easy straight to the point tutorial
@hamedbahram
@hamedbahram 3 ай бұрын
My pleasure!
@saeedakhshijan8159
@saeedakhshijan8159 5 ай бұрын
I always wanted to know how i can apply transition between pages in nextjs, finally here it is, thank you 👍
@hamedbahram
@hamedbahram 5 ай бұрын
I'm glad you found it helpful.
@stonedizzleful
@stonedizzleful 5 ай бұрын
Great video. Well explained. No more flashing on re-render of my next js app!
@hamedbahram
@hamedbahram 5 ай бұрын
Glad it helped!
@adedimolao9094
@adedimolao9094 9 күн бұрын
Thank you! Just what I needed. Didn't know about template.tsx
@hamedbahram
@hamedbahram 9 күн бұрын
There you have it :) glad it was helpful.
@codefinity
@codefinity 5 ай бұрын
Quick, simple, useful and to the point. 👍
@hamedbahram
@hamedbahram 5 ай бұрын
Glad it was helpful!
@Sorkstryparen
@Sorkstryparen 5 ай бұрын
Super awesome as always, please keep this up!
@hamedbahram
@hamedbahram 5 ай бұрын
Thanks! Will do!
@smohammadhn
@smohammadhn 16 күн бұрын
You are a HERO, definitely subbed
@hamedbahram
@hamedbahram 16 күн бұрын
Thank you! I appreciate that.
@baljka17
@baljka17 4 ай бұрын
Exactly what I was looking for. Keep up your good work 👍
@hamedbahram
@hamedbahram 4 ай бұрын
Glad to hear!
@ThugLifeModafocah
@ThugLifeModafocah 5 ай бұрын
freaking awesome and to the point video. Thank you man.
@hamedbahram
@hamedbahram 5 ай бұрын
You're welcome! I appreciate that.
@Pierrot24382
@Pierrot24382 5 ай бұрын
Thank you Hamed, I did not know about templates.
@hamedbahram
@hamedbahram 5 ай бұрын
You're welcome!
@kristiankristian4652
@kristiankristian4652 4 ай бұрын
Very nice and easy explanation ! Many thanks to you!
@hamedbahram
@hamedbahram 4 ай бұрын
Glad it was helpful!
@LePhenixGD
@LePhenixGD 5 ай бұрын
I'm definitely saving this video for later
@hamedbahram
@hamedbahram 5 ай бұрын
Glad you found it helpful.
@saefulanwar6443
@saefulanwar6443 Ай бұрын
bro, thank you very much! this video really helped me
@hamedbahram
@hamedbahram Ай бұрын
You're welcome! Glad to hear that.
@ivandamyanov
@ivandamyanov 4 ай бұрын
Thanks a lot, put that immediately in my app :D
@hamedbahram
@hamedbahram 4 ай бұрын
Awesome!
@afshinkaramifar4429
@afshinkaramifar4429 5 ай бұрын
Amazing tutorial👌, Well done 👏
@hamedbahram
@hamedbahram 5 ай бұрын
Thanks! I appreciate that.
@surajchauhan-fs2mt
@surajchauhan-fs2mt 5 ай бұрын
I like the way you teach sir.
@hamedbahram
@hamedbahram 5 ай бұрын
Glad to hear that!
@starlordjs
@starlordjs 5 ай бұрын
Short and useful. You got my subs 👍
@hamedbahram
@hamedbahram 5 ай бұрын
Awesome, thank you!
@fazelpejmanfar
@fazelpejmanfar 5 ай бұрын
Your videos are way more helpful than nextjs docs😅, thanks hamed jan karet doroste❤
@hamedbahram
@hamedbahram 5 ай бұрын
😅 Glad you find it helpful! Eraadat 🫡
@jazsouf
@jazsouf 5 ай бұрын
Thanks for the tip! I was using a convoluted solution for my entering page transition. Did you find any way to make exit page transition in the app router? My hacky solution is that I am using router.replace to add a searchparam to the route which triggers the start of the exit animation, then I router.push to the actual new page on animation end. I couldn't find any other way to do exit page transitions...
@hamedbahram
@hamedbahram 5 ай бұрын
Yeah I haven't figured out a way to do exit animations yet. Hopefully in future videos!
@fire_fisT
@fire_fisT 3 ай бұрын
My man, can you provide the code for this solution? I'd appreciate that
@junwei993
@junwei993 5 ай бұрын
Amazing content! However my issue is, if I have a global loading.ts component and when I navigate from one route to another, the transition is applied to the loading UI, but once the loading is done, the loaded page content shows immediately without any transition on it. Any workarounds?
@hamedbahram
@hamedbahram 5 ай бұрын
If you have async logic or dynamic data fetching in your pages, its better to use the loading UI with no page transitions. However if you want the page to animate after the loading UI you can add the motion tags and animation to the page component itself and not the template.
@prashlovessamosa
@prashlovessamosa 5 ай бұрын
Bahram sir your teachings are always helpful thank you
@prashlovessamosa
@prashlovessamosa 5 ай бұрын
sir i just watched your work that nook app is super cool and fast i dont know how to make these map stuff how to add filters to them can you please make something for youtube i wanna learn it please
@hamedbahram
@hamedbahram 5 ай бұрын
Glad to hear that
@MyBlancpain
@MyBlancpain 4 ай бұрын
Thanks for the tutorial. Is there any way to prevent the animations from running on page reload and only run when changing routes?
@hamedbahram
@hamedbahram 4 ай бұрын
You're welcome. I don't think you can do that.
@coralioballester
@coralioballester 5 ай бұрын
Nice trick! One question. Does template.tsx force relaoding the transition component AND its children, or only the transition component while keeping children cached?
@hamedbahram
@hamedbahram 5 ай бұрын
Good question! It only re-renders the `template.tsx` while using the cached children server components. Using a template does not cause your entire app to re-render only the template.
@johnpaulpineda2476
@johnpaulpineda2476 5 ай бұрын
@@hamedbahram the "cached children server components" is the main key here.
@dopetag
@dopetag 5 ай бұрын
Ok. But what about exit transitions?
@hamedbahram
@hamedbahram 5 ай бұрын
Exit animations are harder to implement in the app router. Maybe we'll hack them in future videos.
@aliventurous
@aliventurous 4 ай бұрын
@@hamedbahramanother vote for a video on how to hack exit transitions using app router please. Curious to see your approach
@hash2020
@hash2020 5 ай бұрын
Eyval Hamed 👌 Was thinking how to use it on older version without template!? Seems we can generate an random key on every render to force layout to be rerendered, guess that would work
@hamedbahram
@hamedbahram 5 ай бұрын
Eraadat 🫡 Yeah that'll pretty much accomplish the same thing.
@SufjcbeqmFc
@SufjcbeqmFc Ай бұрын
Great video, thanks !
@hamedbahram
@hamedbahram Ай бұрын
You're welcome!
@meowmix0008
@meowmix0008 5 ай бұрын
Excellent guide
@hamedbahram
@hamedbahram 5 ай бұрын
Thanks! I appreciate it!
@sarma_sarma
@sarma_sarma 5 ай бұрын
this is very useful but i have one doubt if i use this is it clear the cache on every page on server compoent?
@hamedbahram
@hamedbahram 5 ай бұрын
No it will still use cached server components for your pages, the only thing that gets re-rendered is the template itself.
@collinsk8754
@collinsk8754 2 ай бұрын
Great tutorial. 🔥🔥
@hamedbahram
@hamedbahram 2 ай бұрын
Thank you 🙌
@mathiasriissorensen6994
@mathiasriissorensen6994 4 ай бұрын
Is it possible to add a loading indicator in templates? Often I find when clicking on a link, it takes a bit before I see the page.
@hamedbahram
@hamedbahram 4 ай бұрын
Watch this video → kzfaq.info/get/bejne/i7R1i8V4r6m4p2w.html
@fakhrulislamfuad8072
@fakhrulislamfuad8072 5 ай бұрын
You're the best bro..🔥
@hamedbahram
@hamedbahram 5 ай бұрын
Thanks man 🔥
@ignacior98
@ignacior98 4 ай бұрын
Great video!
@hamedbahram
@hamedbahram 4 ай бұрын
Thank you!
@agusjkdev
@agusjkdev 2 ай бұрын
Hey Hamed, nice video! Just wanted to ask if is there any way to accomplish this same result without using framer motion or any library at all :)
@hamedbahram
@hamedbahram 2 ай бұрын
Yes you can using client components and css.
@svetoslavtrifonov6431
@svetoslavtrifonov6431 3 ай бұрын
Can we use AnimatePresence and exit animation? Thanks for the video
@hamedbahram
@hamedbahram 3 ай бұрын
The exit animation doesn't quite work with the app router.
@DB-dk2mj
@DB-dk2mj Ай бұрын
Shukran, habibi) from Russia!
@hamedbahram
@hamedbahram Ай бұрын
Pleasure!
@julguga
@julguga 10 күн бұрын
Thanks for sharing this tutorial, it was very helpfull achieve this behavior and understanding the template file. One thing that I noticed is that the transition doesnt work for grouped layouts. I mean if you land first in a grouped layout it triggers but if you navigate between routes of the same group it doesnt trigger the transition. you can create another template file inside the group but I think its not the best solution. Any advice how to fix this?
@hamedbahram
@hamedbahram 10 күн бұрын
The template inside each route group instead of one outside would be how I’d do it.
@jlogo80
@jlogo80 Ай бұрын
Thanks, nice tutorial, would love to see if you can handle exit animations as that would be a 100% page transition.
@hamedbahram
@hamedbahram Ай бұрын
Thanks, yeah that would be cool!
@AleksandrChernovIT
@AleksandrChernovIT 5 ай бұрын
Hi, thanks! How to cancel a template rerender on a specific nested route inside, where i have some a lot of logic component?
@hamedbahram
@hamedbahram 5 ай бұрын
The page server components are cached and not re-rendered; Only the template file re-renders. Does that answer your question?
@AleksandrChernovIT
@AleksandrChernovIT 5 ай бұрын
@@hamedbahram In a nested route, can I wrap something in a server component and prevent rerenders with animation? Seems to be yes... Or use a (page name) structure for a difference layout / template? Need testing
@hamedbahram
@hamedbahram 5 ай бұрын
@@AleksandrChernovIT You can use route groups to opt pages in and out of a layout / template. Watch this video → kzfaq.info/get/bejne/fdVkpa9ims29hKc.html
@AleksandrChernovIT
@AleksandrChernovIT 5 ай бұрын
thanks! @@hamedbahram
@jooooo9572
@jooooo9572 4 ай бұрын
thank you mr bahram
@hamedbahram
@hamedbahram 4 ай бұрын
My pleasure!
@pjbramsted
@pjbramsted 5 ай бұрын
I have yet to find a way to transition a route out. This is changing route and animating in the content on load. But how to animated the initial route out?
@hamedbahram
@hamedbahram 5 ай бұрын
Exit animations are harder in the app router. I'll try and cover that in future videos
@XxbankerboomxX
@XxbankerboomxX 5 ай бұрын
@@hamedbahram have you found a way to do exit animation ?
@user-uo3sg4bn3y
@user-uo3sg4bn3y 3 ай бұрын
My Question What If I add animation to header component so you have shown about, home and contact in header it is using Nextjs Link Tag to navigate pages, but header component you are calling above the children so If Add motion.div in header component The animation will work or not?
@hamedbahram
@hamedbahram 3 ай бұрын
If you want the header animation to run on every navigation you can add a `key` prop to the header component. Otherwise the animation happens once and stays static throughout page transitions.
@fedirouatbi4908
@fedirouatbi4908 5 ай бұрын
Is there is a way to use the view transitions new api?
@hamedbahram
@hamedbahram 5 ай бұрын
I'll try that in the future videos.
@CottidaeSEA
@CottidaeSEA 5 ай бұрын
So this basically works like Animated in React Native. Since the Template component re-renders, would that not mean there'd be a lot of unnecessary work for the client?
@MrJfergs
@MrJfergs 5 ай бұрын
I was thinking the exact same thing, it seems that this will re render everything in the route as apposed to just rendering the html that has changed. Seems like this is the only way to do route transitions with the app router currently.
@CottidaeSEA
@CottidaeSEA 5 ай бұрын
@@MrJfergs If it was possible to detect and trigger animations when an element becomes visible purely through CSS, that'd obviously solve the problem. People have been wanting that feature for a long time to not require IntersectionObserver or MutationObserver. I don't even know if that'd work in React though as I've never tried it.
@hamedbahram
@hamedbahram 5 ай бұрын
Yes, that will cause React to re-render the template instead of preserving the state. However, the only thing that gets re-rendered is the template itself. Your page server components will still be using the cache.
@MrJfergs
@MrJfergs 5 ай бұрын
ah that makes sense, the next js cacheing system is kind of overkill but I guess it does come in handy in this instance. @@hamedbahram
@Gorops
@Gorops 4 ай бұрын
Wouldnt adding the AnimatePresence wrapper be an easier solution than using a Template?
@hamedbahram
@hamedbahram 4 ай бұрын
What do you mean by an AnimatePresence wrapper?
@MVGaming77
@MVGaming77 3 ай бұрын
Does exit animations work with this setup?
@hamedbahram
@hamedbahram 3 ай бұрын
Unfortunately not with the app router.
@ogs102
@ogs102 2 ай бұрын
always the best
@hamedbahram
@hamedbahram 2 ай бұрын
Thanks, I appreciate it!
@ammarhaidar5995
@ammarhaidar5995 5 ай бұрын
Very nice 🙏🙏
@hamedbahram
@hamedbahram 5 ай бұрын
Thanks a lot!
@dung_gl
@dung_gl Ай бұрын
Many thanks to you! How do i make exit transition on page?
@hamedbahram
@hamedbahram Ай бұрын
I've to yet figure that out in the app router :)
@dung_gl
@dung_gl Ай бұрын
@@hamedbahram haha, thank you bro
@LeandroBR07
@LeandroBR07 5 ай бұрын
In pure HTML, we can implement page transitions using the following tag in the head: . Are you aware of whether it's possible to include this meta tag in Next 14?
@hamedbahram
@hamedbahram 5 ай бұрын
I'll have a video on the view transition API soon.
@yashinox5410
@yashinox5410 5 ай бұрын
Soon as possible??😅
@flutterguys
@flutterguys 3 ай бұрын
Hello Hamed What's your mic name?
@hamedbahram
@hamedbahram 3 ай бұрын
Hey! Shure MV7
@aniketdandekar7314
@aniketdandekar7314 5 ай бұрын
How to create page loading on route change? Sometimes the new page takes a while to load but I have clicked the link already. Having no UI to show user that they have clicked a link and the page is still loading makes it a bad UI.
@hamedbahram
@hamedbahram 5 ай бұрын
You can use the `loading.ts` file for that. Watch this video → kzfaq.info/get/bejne/r5-SiZuq1anMnac.html
@alexg7282
@alexg7282 2 ай бұрын
Thank you
@hamedbahram
@hamedbahram 2 ай бұрын
You're welcome!
@codefinity
@codefinity 5 ай бұрын
Thanks!
@hamedbahram
@hamedbahram 5 ай бұрын
Appreciate the support!
@joaov6727
@joaov6727 3 ай бұрын
u are insane, thanks.
@hamedbahram
@hamedbahram 3 ай бұрын
Glad I could help
@amankch
@amankch 5 ай бұрын
Thanks
@hamedbahram
@hamedbahram 5 ай бұрын
Appreciate the support!
@amankch
@amankch 5 ай бұрын
Awesome
@hamedbahram
@hamedbahram 5 ай бұрын
🙌🏼
@igmtink
@igmtink 5 ай бұрын
good day sir hamed, can you make a tutorial how to add cookie banner on next.js 14, for having a permission to accept the cookie
@hamedbahram
@hamedbahram 5 ай бұрын
Great suggestion! I'll have that in mind.
@Michael-Martell
@Michael-Martell 2 ай бұрын
I wasn't able to get it to refresh on link change. The desired effect only worked using an "" link. and not a "" component. I found the Fix!! ... I put pages into folders [App]>(layout.tsx ...[(pages)]>([(home)], [about], [contact]).. Initially I had the template in the app folder, where it wasn't working, but moving it inside of the (pages) folder fixed the issue. Seems like the template.tsx must be a direct sibling of the page folders needed for the effect.
@hamedbahram
@hamedbahram 2 ай бұрын
I didn't quite understand the structure there, can you make a PR on my source code?
@Michael-Martell
@Michael-Martell 2 ай бұрын
@@hamedbahramthere wasn’t any issues with your setup. I just nested pages into folders… and it didn’t work for me until I moved the template.tsx into the immediate parent folder of the page folders.
@hamedbahram
@hamedbahram 2 ай бұрын
@@Michael-Martell I'd love to see your solution.
@Michael-Martell
@Michael-Martell 2 ай бұрын
@@hamedbahram I sent a message with link via your website. YT has been taking my comments containing links down.
@thejusrajendran4164
@thejusrajendran4164 5 ай бұрын
How to add exit animations to this, AnimatePresence is not working for me
@hamedbahram
@hamedbahram 5 ай бұрын
Exit animations are not that straight forward in the app router.
@fhrmk
@fhrmk 4 ай бұрын
i jsut tried it now but i didnt even have to wrap the layout. It was enough just to put the template.jsx in the app folder and it applied to the whole app
@hamedbahram
@hamedbahram 4 ай бұрын
That's right! Adding the template file will do the trick :)
@fhrmk
@fhrmk 4 ай бұрын
@@hamedbahram thanks for the video
@hamzahahmad1670
@hamzahahmad1670 5 ай бұрын
Good day Hamed, I wanted to ask regarding your ultimate next js course. I apologize for the unrelated comment, but I wanted to get a hold of you. I purchased the course, but there was a misspelling in my email address. I sent a message in the site's contact us section, where I have rovided the correct email address as well as the order ID. I was hoping for your assistance in the matter. Thanks!
@hamedbahram
@hamedbahram 5 ай бұрын
No worries! I've updated your account and sent you an email.
@isoceles180
@isoceles180 3 ай бұрын
But can you trigger exit animations?
@hamedbahram
@hamedbahram 3 ай бұрын
Not yet...
@seanzhang3873
@seanzhang3873 25 күн бұрын
how do you do the exit transition then?
@hamedbahram
@hamedbahram 24 күн бұрын
not yet in the app router!
@seanzhang3873
@seanzhang3873 24 күн бұрын
@@hamedbahram Ok, thanks. Great tutorial btw. I have temporarily solve this using freeze route method, but it's kinda hacky. Hopefully Vercel people fix this bug.
@JudahSullivan
@JudahSullivan 3 ай бұрын
Should explain router events
@hamedbahram
@hamedbahram 3 ай бұрын
Sure! I'll have that in mind for the next video.
@JudahSullivan
@JudahSullivan 3 ай бұрын
@@hamedbahram awesome! I’m doing some personal digging to a solution myself. I was able to create to some pretty complex page transitions. Only issue is in the pages router we could use router.events from the use router. I usually could attach it there so the animation wouldn’t fire less router event initiates. Not sure if there’s a possible work around. Thanks again for the reply absolutely love your content🤞🏾🙌🏾
@nickolaki
@nickolaki 5 ай бұрын
Exit animations still dont work right?
@hamedbahram
@hamedbahram 5 ай бұрын
We'll figure that out in future videos.
@solomonakinbiyi
@solomonakinbiyi 5 ай бұрын
How am I not subcribed to your channel??!
@hamedbahram
@hamedbahram 5 ай бұрын
😂Exactly!!
@CeezGeez
@CeezGeez 3 ай бұрын
new version breaks exit animations without a workaround. also, i haven't been able to add loading animations for when a user navigates.
@hamedbahram
@hamedbahram 3 ай бұрын
I've shown the loading animation for when the user navigates in this video. Exit animations on the other hand won't work in the app router.
@CeezGeez
@CeezGeez 3 ай бұрын
i see the animation transitions are working but i didn't see anything regarding loading screens. can you point me to a time stamp?@@hamedbahram
@falahisnan4582
@falahisnan4582 2 ай бұрын
not working on exit transition
@hamedbahram
@hamedbahram 2 ай бұрын
Unfortunately not!
@jannickpedersen4620
@jannickpedersen4620 3 ай бұрын
make each letter a transition xD The way of patience :P
@hamedbahram
@hamedbahram 3 ай бұрын
Not sure if I understand that!
@jannickpedersen4620
@jannickpedersen4620 3 ай бұрын
@@hamedbahram make each letter appear one at the time 😂 lets see who will wait 💀
@hamedbahram
@hamedbahram 3 ай бұрын
@@jannickpedersen4620 😅haha now I get it...
@sjonny-depp
@sjonny-depp 4 ай бұрын
But the exit animation won't work.
@hamedbahram
@hamedbahram 4 ай бұрын
Not yet!
@sjonny-depp
@sjonny-depp 4 ай бұрын
Honestly a shame on Next I am waiting for this issue to be resolved for 2 years now.@@hamedbahram
@SanderCokart
@SanderCokart 5 ай бұрын
until nextjs support exit animations for app router its virtually jarring to look at.
@CottidaeSEA
@CottidaeSEA 5 ай бұрын
So what you're saying is that you're missing componentWillUnmount()?
@SanderCokart
@SanderCokart 5 ай бұрын
@@CottidaeSEA template prevents exit animations its unmounting is forced
@SanderCokart
@SanderCokart 5 ай бұрын
@@CottidaeSEA its probably more complicated than that
@CottidaeSEA
@CottidaeSEA 5 ай бұрын
@@SanderCokart Hmm... yeah, I'm not sure how it'd be done then. I wonder if there's some way to do it with middleware.
@hamedbahram
@hamedbahram 5 ай бұрын
Do you find the page transitions in the video jarring to look at? 🤔
@j2isndhu
@j2isndhu 3 ай бұрын
you can't yet in app router
@hamedbahram
@hamedbahram 3 ай бұрын
The only thing that doesn't quite work in the app router is the exit animations.
@j2isndhu
@j2isndhu 3 ай бұрын
@@hamedbahram yes so the transition between pages doesnt yet work
@tontontonic
@tontontonic 22 күн бұрын
Where is the exit animation? I dislike it.
@hamedbahram
@hamedbahram 20 күн бұрын
Not possible in the app router yet!
@joetaylor1458
@joetaylor1458 5 ай бұрын
This doesnt show how to use exit transitions. This useless
@hamedbahram
@hamedbahram 5 ай бұрын
Thanks for your input.
@garytraffanstedt
@garytraffanstedt 5 ай бұрын
Exit transitions are a mess currently with the app router. There are workarounds but if you check the Next project, you can follow the discussion. Hoping for a fix soon from the Next.js team.
@Adrian_Galilea
@Adrian_Galilea 5 ай бұрын
Very good insights throughout, subbed. I'm a bit let down that this is using framer motion tho, I want View Transitions API on next 🥲 (not complaining about the video)
@hamedbahram
@hamedbahram 5 ай бұрын
Welcome to the channel! I'll cover the view transition API in the upcoming videos soon.