Page Transition Builder
Use when a React or Next.js app needs native view transitions - page and route change animations, shared element morphs between a list and a detail view,...
Open in the libraryWhat it does
Use when a React or Next.js app needs native view transitions - page and route change animations, shared element morphs between a list and a detail view, enter and exit of panels, list reorder, forward and back slides, Suspense skeleton-to-content reveals - or whenever view transitions, startViewTransition, ViewTransition, addTransitionType or transition types come up, or UI states need animating in React with no animation library.
What’s inside
9files
58 KBin total
7,818words of method
69hard numbers
SKILL.md13 KB
Markdown · 233 lines · 1,780 words · sha 6cc50aec7ea3
Page Transition Builder0 lines
What this does5 lines
How to work4 lines · 1 number
Decide what moves first17 lines · 5 numbers
Versions and browsers3 lines · 6 numbers
The boundary and its four triggers27 lines
Props and pseudo-elements10 lines
Transition types42 lines
Shared elements15 lines
Everyday patterns47 lines
When several boundaries fire7 lines
Reduced motion1 line
Official docs1 line
DEMO.md211 B
Markdown · 3 lines · 37 words · sha fa3042466da0
Demo1 line · 1 number
QUESTIONS.md276 B
Markdown · 4 lines · 41 words · sha 273c31a45c63
Open questions for the creator1 line · 1 number
TAGS.md623 B
Markdown · 12 lines · 90 words · sha 394b55546f20
Page Transition Builder9 lines · 4 numbers
references5 files · 44 KB
fixes.md5 KB
Markdown · 48 lines · 829 words · sha e9de32d482cd
Fixes: find the symptom, apply the cure23 lines · 1 number
nextjs.md10 KB
Markdown · 187 lines · 1,254 words · sha a5df218d19b0
Next.js App Router0 lines
Setup3 lines
What changes in the workflow3 lines · 2 numbers
No boundary around `{children}` in a layout3 lines
`transitionTypes` on `next/link`12 lines · 1 number
Getting destination content ready9 lines
Navigating from code15 lines
Server-side sorting and filtering with `router.replace`13 lines
Routing-driven tabs31 lines
Directional slide plus Suspense reveal on one page18 lines
`loading.tsx` is a Suspense boundary8 lines
Shared elements across routes15 lines · 4 numbers
Same route, different dynamic segment11 lines
Server and Client Components3 lines
patterns.md12 KB
Markdown · 256 lines · 1,607 words · sha bd98fbc05398
Patterns1 line
Search-as-you-type grid with `useDeferredValue`27 lines
Card expands into a detail view (same page)40 lines · 2 numbers
Typed helpers that stop label clashes11 lines
Cross-fade without a remount7 lines
Isolating an element from the page animation11 lines · 2 numbers
Suspense reveal flicker6 lines
Sliding tab indicator (local state)36 lines · 1 number
Pushed content glides (layout displacement)14 lines
A collapse component you can reuse11 lines
With `Activity`9 lines
Keeping controls out of the animation with `useOptimistic`16 lines
Events: animating from JavaScript19 lines · 4 numbers
Durations6 lines · 4 numbers
recipes.md9 KB
Markdown · 253 lines · 1,062 words · sha d6fc11dc575c
CSS recipes1 line
Timing tokens and keyframes23 lines · 4 numbers
Fade10 lines
Vertical slide (skeleton to content)18 lines
Directional slides41 lines · 2 numbers
Shared element morph14 lines · 2 numbers
Text morph15 lines
Scale17 lines · 8 numbers
Keeping the page clickable during a transition10 lines · 1 number
Live root (no root cross-fade)11 lines
Pinning persistent elements30 lines · 4 numbers
Moving indicator (underline under tabs, segmented-control pill)12 lines · 5 numbers
Reduced motion11 lines
workflow.md8 KB
Markdown · 122 lines · 1,118 words · sha c52b826e1fcf
Workflow: adding view transitions to an app1 line
Step 1: Audit before writing code16 lines
Step 2: Add the CSS2 lines
Step 3: Isolate persistent elements6 lines · 1 number
Step 4: Directional page transitions24 lines
Step 5: Suspense reveals20 lines · 1 number
Step 6: Shared elements17 lines · 1 number
Step 7: Check every navigation7 lines · 1 number
The text is never on this site. It loads into your Claude when a task needs it.