Mouse Pixelation
WebGL
A grid-based page transition that closes and opens routes through a staggered grid of sliding cells.
Chess Grid Transition turns the cut between routes into a designed moment: a grid closes and opens between pages.
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 thing to watch 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 ChessGridTransition from "@/components/effects/chess-grid-transition"; export default function layout({ children }: { children: React.ReactNode }) { return ( <ChessGridTransition> {children} </ChessGridTransition> );}An architecture studio portfolio can use Chess Grid Transition between the project index and individual case studies. When a visitor opens a project, rows of grid cells slide across to close the current page, then clear to open the next one, echoing the modular layouts the studio already uses.
The outcome is continuity. The route change reads as part of the portfolio's visual language, and with a short duration the visitor reaches the project without waiting on the effect.
A design festival campaign site can use the same transition between its program, venue, and speaker pages, where grid geometry already runs through the identity.
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 | 1 | Duration multiplier for the chess grid sweep. |
gridSize | number | 8 | Grid density used to derive transition columns and responsive rows. |
color | string | #ff5f00 | Chess grid block color. |
Use it when a simple route tree needs a patterned grid that closes and opens between pages without delaying navigation.
Mount it in your root layout around {children}, as in the usage code. Chess Grid Transition renders TransitionRouter from next-transition-router itself, so it stays mounted across navigations and no separate provider or template is needed.
By default each cell slides for 0.8s with a 0.1s stagger per row and column, so the default eight-column grid takes about 1.8s to close and about 1.8s to open. The duration prop multiplies the slide time (default 1, clamped 0.25 to 3); the stagger stays fixed.
Move focus to the destination main region or heading after navigation completes.
With reduced motion enabled, the component skips the grid and fades the page out and back in over 0.2s each.
Need a custom effect? Tell us what to create.