Components

Gooey Nav

Interactive navigation with particle effects and gooey animations

Configuring your account...

Please wait while we prepare everything for you

Usage

import GooeyNav from './GooeyNav'

// update with your own items
const items = [
  { label: "Home", href: "#" },
  { label: "About", href: "#" },
  { label: "Contact", href: "#" },
];

<div style={{ height: '600px', position: 'relative' }}>
  <GooeyNav
    items={items}
    particleCount={15}
    particleDistances={[90, 10]}
    particleR={100}
    initialActiveIndex={0}
    animationTime={600}
    timeVariance={300}
    colors={[1, 2, 3, 1, 2, 3, 1, 4]}
  />
</div>

Props

PropTypeDefaultDescription
itemsGooeyNavItem[][]Navigation items with label and href
animationTimenumber600Base animation duration in milliseconds
particleCountnumber15Number of particles in the effect
particleDistances[number, number][90, 10]Start and end distances for particles
particleRnumber100Particle rotation range
timeVariancenumber300Time variance for particle animations
colorsnumber[][1, 2, 3, 1, 2, 3, 1, 4]Color indices for particles
initialActiveIndexnumber0Initially active navigation item