Loading
Loading
Loading
mobile footer

Build the Interaction Layer Your Website is Missing.

Browse All EffectsBrowse All EffectsBrowse All EffectsUpgrade to ProUpgrade to ProUpgrade to Pro

70+ effects free, forever. No credit card.

© 2026 Hyperiux. All Rights Reserved.

AI Component CatalogueHey AI, Learn About Us
Platform

Vault

  • Documentation
  • Pricing
  • Blog
  • Community
  • NPM
  • MCP

Categories

  • All Effects
  • WebGL
  • Text
  • Backgrounds
  • Buttons
  • Carousels
  • Scroll
  • Components
  • Navigation
  • Cursor
  • Transitions
  • Loaders

Documents

  • Introduction
  • Installation
  • CLI
  • Dependencies
  • License

Legal

  • License Agreement
  • Terms of Service
  • Privacy Policy
  • Refund Policy
Socials
  • Twitter / X
  • LinkedIn
  • GitHub
  • Instagram
Contact Us
  • hello@hyperiux.com
New effects, in your inbox

Every new drop, plus the occasional behind-the-scenes build. No spam. Unsubscribe anytime.

All Effects
Featured ComponentsText AnimationsAnimated BackgroundsAnimated ButtonsCarousel EffectsScroll EffectsCreative ComponentsNavigationsCursor EffectsTransitionsLoadersWebGL & 3D Effects
Templates
IntroductionInstallationCLIDependenciesLicense
PricingBlogGithubNPMMCP Doc
Loading
Home/effects/Block Transition

Block Transition

A page transition effect that uses moving blocks or panels to cover, reveal, and connect route changes.

GSAPnext-transition-router
DemoDemoDemo

Tune the Real Props

Color

Transition block color.

Overview

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.)

Usage Code

layout
1import React from 'react'2import BlockTransition from '@/components/effects/block-transition'3 4export default function layout({ children }) {5 return (6 <BlockTransition>7 {children}8 </BlockTransition>9 )10}

Example Production Use Case

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.


Best Used For

  • Graphic brand sites where a fast cover-and-reveal cut can make navigation feel intentional.
  • Small route trees where transition timing stays short and destination focus is restored.
  • Block Transition turns route change into a brief brand moment without delaying orientation.

Not For

Not for apps, docs, checkout, search, or frequently navigated product flows where delay harms completion.


Performance Budget

Keep duration short, avoid artificial route delays, and do not block interactivity after the destination route is ready.


Accessibility and Mobile

Move focus to the destination main region after navigation. On mobile and reduced motion, use instant transitions or short fades.


Common Mistakes

  • Using Block Transition as a fake loading delay.
  • Forgetting focus restoration after navigation.
  • Running full-screen motion for reduced-motion users.

Changelog

Added reduced-motion route fallback with short opacity fades.
Initial release

API Reference

PropTypeDefaultDescription
enableContentShiftbooleanfalseAdds content scale/blur during the transition.
rowsnumber5Number of block rows.
colorstring#000000Transition block color.
durationnumber1Duration multiplier for the cover and reveal block animations.

Questions, Answered.

When should I use Block Transition?

Use it when a brand, portfolio, or campaign route change needs a fast block-based reveal without delaying navigation.

Where should Block Transition mount in the App Router?

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.

How long should Block Transition last?

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.

How should focus work after Block Transition?

Move focus to the destination main region or heading after navigation completes.

What is the reduced-motion fallback for Block Transition?

With reduced motion enabled, the component skips the blocks and fades the page out and back in over 0.2s each.

Request a Custom Animation

Need a custom effect? Tell us what to create.

Related Effects

Explore All EffectsExplore All EffectsExplore All Effects
Rope Cursor
Pro
svg-path

Rope Cursor

Cursor

Dotted Grid Background
canvas

Dotted Grid Background

Backgrounds

Parallax Slider
Pro
GSAP

Parallax Slider

Scroll

Liquid Glass Cursor
motion

Liquid Glass Cursor

Cursor

Lines Loader
Pro
GSAPLucide-react

Lines Loader

Loaders