Загрузка видео...
Не удалось загрузить видео
Next 13 App Router Page Transitions! - Each page is streamed in - Keeps old page around using framer-motion - Browser back/forward works as expected
130,679 просмотров • 3 лет назад •via X (Twitter)
Комментарии: 10

cc @samselikoff

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

How do you record this screen? That background looks nice

To learn more about this:

Great content. What is the reason for using LayoutRouterContext? ;)

Hero! How did you get the trick?

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

How does this frozen router works?

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?

This is so perfectly timed

