Kinetic UI
Back to Introduction
Navigation

Floating Navbar

A sleek, auto-hiding floating navigation bar with fluid hover indicator physics.

Quick Actions
CLI Installation
npx kinetic-ui-cli@latest add floating-navbar

The FloatingNavbar is an essential component for modern landing pages. It provides a non-intrusive navigation experience by automatically hiding when scrolling down and revealing when scrolling up. It features a Framer Motion-powered layout animation that seamlessly tracks the user's hover state across items. Now fully upgraded with 3 hover indicator variants.

Live Preview

Floating Navbar

Usage Guide

1. Import the Component

Import the component into your React or Next.js page:

import { FloatingNavbar } from "@/components/creative/floating-navbar";

2. Implementation Example

Render the component and customize its behavior by passing props:

import { FloatingNavbar } from "@/components/creative/floating-navbar";

export default function Example() {
  return (
    <div className="w-full flex items-center justify-center p-8">
      <FloatingNavbar
        items{/* value */}
        color="example"
        speed{10}
      />
    </div>
  );
}
Performance Notes
  • Uses CSS hardware acceleration via GPU transform-binds.
  • Damped interpolation minimizes paint-redraw flashes.
  • Tree-shakable import: only compiles elements requested.
Accessibility Notes
  • Full keyboard focus-ring navigation support (`Tab`/`Shift+Tab`).
  • ARIA roles mapped correctly for assistive screen readers.
  • Respects `prefers-reduced-motion` system toggles.