正在加载视频...
视频加载失败
Next 13 App Router Page Transitions! - Each page is streamed in - Keeps old page around using framer-motion - Browser back/forward works as expected
10 条评论

Luca Matteis3 年前
cc @samselikoff

Joonas Sandell3 年前
This is (almost) the same way I handled default page transitions (back/forward etc.) in my portfolio

Jorge Rios3 年前
How do you record this screen? That background looks nice

Jon3 年前
To learn more about this:

Krzysztof Ciach3 年前
Great content. What is the reason for using LayoutRouterContext? ;)

Lorenzo Girardi3 年前
Hero! How did you get the trick?

Norman Dilthey3 年前
Nice! Wouldnt it be great if that worked with ssr too? ☺️ Maybe instruct ther server to return both, the current and the next page / previous page? Not sure if that would work

Szymon3 年前
How does this frozen router works?

David Bismut3 年前
Back button shouldn’t trigger a transition imo or it there might be some glitches with iPhone and the swipe back gesture. Also do this handle scroll restoration?

Jonno Riekwel 🇳🇱 🇳🇿 – devlogs.gg is live 🎉3 年前
This is so perfectly timed

