
Expanding Navbar
Navigation
A responsive navbar with animated dropdowns, text-swap hover effects, and a collapsible mobile menu.
Elevate Navbar gives navigation spatial presence: dropdowns rise in with image previews while link labels swap on hover.
Use it when the site has enough structure to justify a designed menu moment: services, products, resources, docs, use cases, or portfolios. For three links, keep it boring and fast.
The risk in production is cleverness in the one place every visitor needs reliability. Build keyboard, click, tap, Escape, focus restore, and mobile behavior before adding directional or overlay motion.
import ElevateNavbar from '@/components/effects/elevate-navbar' const page = () => { return ( <> <ElevateNavbar/> </> )} A developer-tool marketing site can use Elevate Navbar to organize product areas, tech stacks, and documentation in one header. Dropdowns open with an image preview for each destination, link labels swap on hover, and the call to action changes color when the visitor points at it.
The outcome is polish where it is noticed most. On smaller screens the same structure moves into a collapsible mobile menu, so the docs and installation routes stay one tap away.
Not for tiny sites, hover-only menus, checkout, forms, or navigation where speed and reliability are the whole job.
Keep panel animations short, avoid layout shift, and do not block route transitions or scroll restoration.
Use real links, aria-expanded triggers, Escape close, and focus restore. Mobile should use a drawer, accordion, or full-screen menu that does not depend on hover.
| Prop | Type | Default | Description |
|---|---|---|---|
backgroundColor | string | #d8b4fe | Page background behind the navbar. |
ctaBackground | string | #ffffff | CTA button background color. |
ctaHoverBackground | string | #000000 | CTA button hover background color. |
activeColor | string | #ffffff | Active and focused nav link color. |
inactiveColor | string | rgba(255,255,255,0.5) | Dimmed nav link color while another item is active. |
duration | number | 0.35 | Nav, dropdown, and mobile accordion animation duration. |
ease | string | power2.out | GSAP easing used for nav and dropdown transitions. |
staggerItems | boolean | true | Reveals dropdown items one by one. |
Use it when a SaaS or product page needs a header that groups sections into dropdowns with image previews.
Partly. The mobile menu works by tap and keyboard, but desktop dropdowns open on hover only, so add click and keyboard triggers for them.
Escape should close the menu and restore focus to the trigger. Trap focus only while overlay menus are open.
Use a drawer, accordion, or simple full-screen menu that respects touch expectations.
Remove direction travel and large shifts; keep simple visible open/closed states.
Need a custom effect? Tell us what to create.