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
Displacement Navbar

Displacement Navbar

An animated navigation component for portfolios, agency websites, product ecosystems, creative studios, and brand-led interfaces where the menu should feel spatial, editorial, and deliberate.

GSAP
DemoDemoDemo

Tune the Real Props

Shelf Background

Shelf and header background color.

Page Gradient From

Start color of the displaced page's gradient.

Page Gradient To

End color of the displaced page's gradient.

Link Color

Primary and info link text color.

Muted Color

Index numerals, captions, and dimmed-state color.

Hairline Color

Bar seam and footer divider color.

Overview

Displacement Navbar turns a simple menu trigger into a full navigation composition.

The component opens a large menu surface that visually displaces the page state, giving primary routes more room to breathe. Large navigation links can sit on one side, secondary routes can occupy a quieter column, and preview media or contextual imagery can respond to selected items. The result feels closer to an editorial navigation layer than a standard dropdown.

Use Displacement Navbar when navigation is part of the brand experience. It works for creative studios, portfolio sites, SaaS product ecosystems, template libraries, agency pages, campaign microsites, and design-led product websites where routes need hierarchy, not just placement.

The page job is orientation with presence. The user should immediately understand the primary routes, see supporting options without confusion, and close the menu without friction. The displacement motion should make the menu feel connected to the page, not like a dark panel arrived from another website.


Usage Code

page
1import DisaplacementNavbar from '@/components/effects/displacement-navbar'2 3const page = () => {4  return (5   <DisaplacementNavbar/>6  )7}

Example Production Use Case

A creative studio can use Displacement Navbar to turn a minimal header into a strong editorial menu. The compact state keeps the page clean, while the expanded state gives the studio space for Work, Services, About, Journal, Contact, and selected preview imagery.

The outcome is navigation with brand memory. The menu helps users move through the site while reinforcing the studio’s visual language.

A product ecosystem can use the same component to organize Components, Templates, Showcase, Docs, Pricing, and Changelog inside one composed navigation layer. The menu gives each route a clear place without forcing a heavy header onto every page.


Best Used For

  • Portfolio and agency websites where navigation should carry visual presence.
  • SaaS, AI, and product ecosystems with a compact set of primary routes.
  • Template libraries, component directories, and documentation-adjacent products.
  • Campaign microsites where the menu should feel authored.
  • Editorial and design-led websites where route hierarchy benefits from preview content.
  • Desktop-first brand experiences that still need a sensible mobile fallback.

Not For

Not for complex enterprise navigation with deep nesting, admin dashboards, ecommerce mega menus, dense documentation sidebars, or workflows where users need instant utilitarian navigation.

Not for menus with unclear route labels. Motion can make navigation memorable, but it cannot make vague labels useful.

Not for pages where the preview image becomes louder than the route structure. Navigation is not a moodboard with escape-key support.


Performance Budget

Keep the menu animation lightweight. Animate transform, opacity, clip-path, or height with restraint. Avoid layout-heavy transitions across too many nested elements. Optimise preview images and avoid loading every large media asset before the menu is opened.

If preview media changes on hover, preload carefully or use small optimized images. Clean up event listeners, outside-click handlers, scroll locks, timers, and animation instances when the component unmounts.

Avoid long stagger chains. Navigation should feel polished, not delayed.


Accessibility and Mobile

Use a semantic navigation landmark, real links, and button controls. The menu trigger should have a clear accessible label and expanded state. Support keyboard access, visible focus states, Escape-to-close behavior, and focus return to the trigger.

If the menu behaves like an overlay, prevent unsafe background interaction while it is open and keep the focus order predictable. Hover-preview behavior should also work through keyboard focus.

On mobile, simplify the layout into a full-screen menu, stacked panel, or bottom-sheet style pattern. Reduce preview media, increase tap target size, and keep the close control visible. For reduced motion, remove displacement travel, long stagger, preview motion, and panel shifts. Open the menu instantly or with a minimal fade.


Common Mistakes

  • Using a div instead of a button for the trigger.
  • Making hover previews unavailable to keyboard users.
  • Letting preview images compete with primary route labels.
  • Hiding important routes in tiny secondary columns.
  • Forgetting Escape-to-close and focus return.
  • Loading heavy preview media before the menu opens.
  • Creating a beautiful menu with no active route state.
  • Forcing the full desktop layout onto mobile.

Changelog

v1.0.0

Sep 14, 2026
Initial release

API Reference

PropTypeDefaultDescription
openDurationnumber0.65Page displacement and bar/mark open duration, in seconds.
closeDurationnumber0.65Page displacement and bar/mark close duration, in seconds. Matches openDuration by default so the close mirrors the open.
contentStaggernumber0.055Delay between each shelf content item fading in on open, and out again on close in reverse order.
imageSwapDurationnumber0.5Duration of the figure image cross-swap on link hover, in seconds. Needs Show Media on.
showMediabooleantrueShows the figure image panel next to the primary links.
shelfBackgroundstring#151515Shelf and header background color.
pageGradientFromstring#0D47A1Start color of the displaced page's gradient.
pageGradientTostring#E3F2FDEnd color of the displaced page's gradient.
linkColorstring#f4f3f1Primary and info link text color.
mutedColorstringrgba(244,243,241,0.38)Index numerals, captions, and dimmed-state color.
hairlineColorstringrgba(244,243,241,0.14)Bar seam and footer divider color.
charStaggernumber0.01Per-character reveal delay on link hover, in seconds.
showLinkUnderlinebooleantrueShows the underline draw-in under hovered links.
dimInactiveLinksbooleantrueDims sibling primary links while one is hovered.

Questions, Answered.

What is Displacement Navbar?

Displacement Navbar is a React navigation component that opens a large animated menu surface where links, secondary routes, and preview media shift into a composed layout.

When should I use Displacement Navbar?

Use it for portfolios, agency sites, SaaS products, component libraries, template directories, campaign microsites, and brand-led websites where navigation should feel more designed than a standard dropdown.

Is Displacement Navbar the same as a full-screen menu?

Not exactly. A full-screen menu simply covers the page. Displacement Navbar uses spatial layout and motion to make the menu feel connected to the page state.

Can Displacement Navbar include preview images?

Yes. Preview images work well when they clarify or reinforce the selected route. Keep them optimized and avoid making them more important than the navigation itself.

Should Displacement Navbar lock background scroll?

If the menu opens as a large overlay, scroll locking is usually useful. If it opens as an inline header expansion, scroll locking may not be necessary.

What should reduced motion do?

Reduced motion should remove large displacement travel, staggered route motion, preview movement, and panel shifts. The menu should open instantly or with a minimal fade.

View MoreView More

Request a Custom Animation

Need a custom effect? Tell us what to create.

Related Effects

Explore All EffectsExplore All EffectsExplore All Effects
Morphing Dock
Pro
GSAP

Morphing Dock

Navigation

Unfold Navbar
Pro
GSAP

Unfold Navbar

Navigation

Side Navbar
Pro
CSS

Side Navbar

Navigation

Directional Menu
GSAPLucide-react

Directional Menu

Navigation