Toggle Sidebar B
AppearanceLight & dark mode D

Gooey Nav

Navigation indicator morphs with gooey blob transitions between items.

Default

Click an item to send the blob across and burst the particles. Particle count, variance and radius are wired to the controls underneath.

Light previewReplay previewOpen in new tab

Customize

Particle Count15
Animation Variance300
Radius Factor100

API Reference

GooeyNav

PropTypeDefaultDescription
items{ label: string, href?: string | null }[][]Array of navigation items.
animationTimenumber600Duration (ms) of the main animation.
particleCountnumber15Number of bubble particles per transition.
particleDistances[number, number][90, 10]Outer and inner distances of bubble spread.
particleRnumber100Radius factor influencing random particle rotation.
timeVariancenumber300Random time variance (ms) for particle animations.
colorsnumber[][1, 2, 3, 1, 2, 3, 1, 4]Color indices used when creating bubble particles. Each index reads the CSS variable --color-N and falls back to white.
initialActiveIndexnumber0Which item is selected on mount.

Accessibility

Keyboard shortcuts and ARIA behavior.

Shortcut Description
TabMoves focus between items.
Enter + SpaceSelects the focused item and plays the transition.
  • Items are real links, so pass an href when they navigate.
  • The text on top of the blob is a visual copy of the label. Assistive tech reads the links.