Floating Pill Nav
aka Island Nav · Capsule Nav
Centered, pill-shaped navigation that floats above the page with a subtle backdrop blur.
When to use
Marketing sites that want presence without heaviness.
Anatomy
- Fixed position with top offset (~16px)
- Centered max-width, rounded-full
- backdrop-filter: blur(20px) saturate(180%)
- Border 1px rgba(255,255,255,0.08)
How the industry does it
2 examples · credited
Prompt
Build a floating pill navbar. Fixed position, top: 16px, centered horizontally with max-width 720px. Rounded-full, background rgba(10,10,12,0.6), backdrop-blur-xl, 1px border rgba(255,255,255,0.08). Inside: wordmark on the left, 4–5 nav links centered (Pricing, Docs, Customers, Blog, Changelog), and a single small CTA on the right ("Sign in" or "Get started" pill). Active link gets a subtle pill background and slightly brighter text. Hover transitions on every link (150ms ease). On scroll past 80px the navbar shrinks slightly and gains a stronger blur.Polish & tuning
2 of 4 unlockedMotion
Ease-out for entrance, ease-in-out for state. 200ms hover, 400–600ms layout. Stagger children at 30–60ms so groups feel intentional, not synchronized.
Spacing
Pick one scale (4 or 8) and don't mix. Section padding 96–128px desktop, 48–64px mobile. Headline sits ~24px above the subhead; subhead ~32px above the CTA cluster.