Loading video...

Video Failed to Load

Go Home

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 views • 3 years ago •via X (Twitter)

10 Comments

Luca Matteis's profile picture
Luca Matteis3 years ago

cc @samselikoff

Joonas Sandell's profile picture
Joonas Sandell3 years ago

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

Jorge Rios's profile picture
Jorge Rios3 years ago

How do you record this screen? That background looks nice

Jon's profile picture
Jon3 years ago

To learn more about this:

Krzysztof Ciach's profile picture
Krzysztof Ciach3 years ago

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

Lorenzo Girardi's profile picture
Lorenzo Girardi3 years ago

Hero! How did you get the trick?

Norman Dilthey's profile picture
Norman Dilthey3 years ago

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

Szymon's profile picture
Szymon3 years ago

How does this frozen router works?

David Bismut's profile picture
David Bismut3 years ago

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 🎉's profile picture
Jonno Riekwel 🇳🇱 🇳🇿 – devlogs.gg is live 🎉3 years ago

This is so perfectly timed

Related Videos

PDF parsing is still painful because LLMs reorder text in complex layouts, break tables across pages, and fail on graphs or images. 💡Testing the new open-source OCRFlux model, and here the results are really good for a change. So OCRFlux is a multimodal, LLM based toolkit for converting PDFs and images into clean, readable, plain Markdown text. Because the underlying VLM is only 3B param, it runs even on a 3090 GPU. The model is available on Hugging Face . The engine that powers the OCRFlux, teaches the model to rebuild every page and then stitch fragments across pages into one clean Markdown file. It bundles one vision language model with 3B parameters that was fine-tuned from Qwen 2.5-VL-3B-Instruct for both page parsing and cross-page merging. OCRFlux reads raw page images and, guided by task prompts, outputs Markdown for each page and merges split elements across pages. The evaluation shows Edit Distance Similarity (EDS) 0.967 and cross‑page table Tree Edit Distance 0.950, so the parser is both accurate and layout aware. How it works while parsing each page - Convert into text with a natural reading order, even in the presence of multi-column layouts, figures, and insets - Support for complicated tables and equations - Automatically removes headers and footers Cross-page table/paragraph merging - Cross-page table merging - Cross-page paragraph merging A compact vision‑language models can beat bigger models once cross‑page context is added. 🧵 1/n Read on 👇

Rohan Paul

149,292 views • 1 year ago