SSR and page transitions
Short story! Can I have any type of page transitions when all pages are SSR?
I've tried putting it in a template.js and wrapping layout in framer motion but no, There's a transition on first pageload only
9 Replies
In app dir, no not as of now. I believe they are working on fixing it though
@Josh How would you like to have that implemented?
I'm thinking something like a delay attribute on <Link /> or something like a frontend middleware.
Yes you can?
Not exiting animations
entering animations you can
👍
GitHub
[NEXT-1151] App router issue with Framer Motion shared layout anima...
Verify canary release I verified that the issue exists in the latest Next.js canary release Provide environment information Operating System: Platform: linux Arch: x64 Version: #22 SMP Tue Jan 10 1...
Maybe something like this https://github.com/swup/swup
I didnt try it just saw it few days ago, soo not sure if it will work
GitHub
GitHub - swup/swup: Versatile and extensible page transition librar...
Versatile and extensible page transition library for server-rendered websites :tada: - GitHub - swup/swup: Versatile and extensible page transition library for server-rendered websites :tada:
because of this issue, swup will almost certianly not work
I've got somewhere nicer than a few days ago by utilizing layout.js so I'm happy!