Has anyone figured out how to do page transitions with <AnimatePresence> in Next 13. #1775
Replies: 3 comments 4 replies
-
@williamlmao Yes we're doing this, see #1771 This should work in other frameworks besides Next as well, just keep in mind that _app is a top-level page wrapper in Next.
Using this technique we're able to overlap pages. The post I mentioned above is asking whether there's any standard way to reset scroll during this kind of transition, something we solved on our own. Hope this helps you and others! ✨ |
Beta Was this translation helpful? Give feedback.
-
I'm having the same issues. I tried your solution, but exit animations still seem broken... |
Beta Was this translation helpful? Give feedback.
-
Has you guys found a way? |
Beta Was this translation helpful? Give feedback.
-
I'm not sure if this is even possible, but I'm trying to recreate page transitions in Next 13.
I've tried wrapping around {children} inside of /app/layout.ts, but that doesn't seem to work. I can't really put in my /app/page.ts because it is a server component and I have to keep it that way because of async child components.
Would love to hear if anyone has found other solutions for this! Thanks.
Beta Was this translation helpful? Give feedback.
All reactions