
Block Transition
Transitions
An editorial page transition that uses a page-turn metaphor for portfolios, stories, and brand-led navigation.
Page Flip Transition turns the cut between routes into a designed moment: the route change borrows a page metaphor.
Use it on brand sites, campaign pages, portfolios, and editorial journeys where route changes benefit from continuity. Avoid it in apps, docs, checkout, and search paths where navigation speed is the feature.
The main risk is delay. Mount the transition where route state actually changes, keep the duration short, restore focus after navigation, and give reduced-motion users an instant or nearly instant path.
(Next.js App Router only. Requires next-transition-router for route-transition lifecycle hooks and renders its TransitionRouter itself, so no separate provider is needed. This effect will not function in plain React or in the Next.js Pages Router.)
import FlipTransition from "@/components/effects/page-flip-transition"; export default function RootLayout({ children }) { return ( <html lang="en"> <body> <FlipTransition>{children}</FlipTransition> </body> </html> );}An online magazine can use Page Flip Transition between an issue's cover and the feature stories inside it. When a reader opens a story, the current page turns away on a corner pivot and the next one turns in, reinforcing the feeling of moving through a printed issue.
The outcome is continuity. The transition is kept for low-frequency moments, such as entering an issue or a long read, while search, archives, and subscription checkout keep instant navigation.
Not for apps, docs, checkout, search, or frequently navigated product flows where delay harms completion.
Keep duration short, avoid artificial route delays, and do not block interactivity after the destination route is ready.
Move focus to the destination main region after navigation. On mobile and reduced motion, use instant transitions or short fades.
| Prop | Type | Default | Description |
|---|---|---|---|
duration | number | 0.9 | Page flip duration. |
bgColor | string | #ff5f00 | Overlay background color. |
loaderColor | string | #000000 | Color of the loading blocks shown during the flip. |
direction | "left-to-right" | "right-to-left" | left-to-right | Direction the page flips across the screen. |
Use it when an editorial or portfolio route change suits a page-flip metaphor without delaying navigation.
Mount it in your root layout around {children}, as in the usage code. Page Flip Transition renders TransitionRouter from next-transition-router itself, so it stays mounted across navigations and no separate provider or template is needed.
By default the page flips over 0.9s on leave and again on enter, with the loader bars adding a short staggered beat in between, about 2.3s in total. The duration prop (default 0.9) sets the flip time; the loader bars and content fades keep fixed timings.
Move focus to the destination main region or heading after navigation completes.
With reduced motion enabled, the component skips the flip and loader bars and fades the page out and back in over 0.25s each.
Need a custom effect? Tell us what to create.