
Rope Cursor
Cursor
A page transition effect that uses moving blocks or panels to cover, reveal, and connect route changes.
Block Transition turns the cut between routes into a designed moment: blocks cover and reveal the next route.
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.
In production, the 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 React from 'react'import BlockTransition from '@/components/effects/block-transition' export default function layout({ children }) { return ( <BlockTransition> {children} </BlockTransition> )}A fashion label can use Block Transition between its collection lookbooks. On each route change, horizontal blocks sweep in to cover the current page and then clear away to reveal the next collection, giving every cut the graphic rhythm of the brand's campaign layouts.
The outcome is intention. With only a handful of lookbook pages, the cover-and-reveal stays brief enough that visitors are never left waiting. The online store and checkout keep standard navigation, where speed matters more than style.
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 |
|---|---|---|---|
enableContentShift | boolean | false | Adds content scale/blur during the transition. |
rows | number | 5 | Number of block rows. |
color | string | #000000 | Transition block color. |
duration | number | 1 | Duration multiplier for the cover and reveal block animations. |
Use it when a brand, portfolio, or campaign route change needs a fast block-based reveal without delaying navigation.
Mount it in your root layout around {children}, as in the usage code. Block 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 row of blocks covers in 0.72s with a 0.12s stagger across the five rows, about 1.2s to cover, and roughly the same again to reveal. The duration prop is a multiplier (default 1, clamped 0.25 to 3), so lower it for a faster cut.
Move focus to the destination main region or heading after navigation completes.
With reduced motion enabled, the component skips the blocks and fades the page out and back in over 0.2s each.
Need a custom effect? Tell us what to create.