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
Josh
Josh15mo ago
In app dir, no not as of now. I believe they are working on fixing it though
parameter666
parameter66615mo ago
@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.
barry
barry15mo ago
Yes you can?
Josh
Josh15mo ago
Not exiting animations entering animations you can
barry
barry15mo ago
👍
Josh
Josh15mo ago
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...
Bozic0909
Bozic090915mo ago
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:
Josh
Josh15mo ago
because of this issue, swup will almost certianly not work
parameter666
parameter66615mo ago
I've got somewhere nicer than a few days ago by utilizing layout.js so I'm happy!
Want results from more Discord servers?
Add your server