Page transitions in Next.js? #2139
Unanswered
Mohammed-Mounir
asked this question in
Support
Replies: 1 comment
-
This is really not an ideal way of handling transitions between routes. There should be some other ways. I found some CodeSandBox but they are outdated and I cannot managed to get it working. Could we have some insights or a codesandbox on how to handle transitions page with NextJs ? @joshuaellis Thank you 🙏 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello
I tried before react-spring to animate page transition in next.js but I was having an issue,
pretty sure I was doing something wrong, so what is the correct for animating page transition in latest next,js/react-spring?
BTW in framer-motion I simply wrote HOC and wrapped each page with HOC.
Thank you.
Edit: I already search the discussions and found the following post,
but when I navigate to any page it doesn't display/show:
Edit: I fixed the issue by listening for routeChangeComplete (and routeChangeError in case an error or route load is cancelled) then setting the opacity to 1, but now there's another issue where I can only see the page transition animation in the first time the route loads then there's no animation between page transition;
Beta Was this translation helpful? Give feedback.
All reactions