Mohammad Shehadeh

Floating Shrink Header

Navigation 1

About

A sticky navigation header that runs full width at the top of a page and shrinks into a blurred floating pill once the user scrolls past 100px, with a sliding hover highlight on nav links and an animated dropdown menu on mobile.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Floating Shrink Header to your project and fits it to your theme.

Code

How Floating Shrink Header is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import Header02 from "@/components/ui/header-02";

export default function Header02Demo() {
  return <Header02 />;
}

Dependencies

More by Mohammad Shehadeh

View all
  • Feature Problem Cards

    Feature Problem Cards

    91
  • Feature Grid Spotlight Cards

    Feature Grid Spotlight Cards

    74
  • Ecommerce Category Page

    Ecommerce Category Page

    73
  • Split Login

    Split Login

    70
  • Comparison Section

    Comparison Section

    66
  • Dithered Shader CTA

    Dithered Shader CTA

    65
  • Comparison Table

    Comparison Table

    64
  • FAQ Two Column

    FAQ Two Column

    64

More in Navigation

View all
  • Sidebar

    Sidebar

    296
  • Progress Bar Stepper

    Progress Bar Stepper

    45
  • Navbar

    Navbar

    1
  • Tabs

    Tabs

    16
  • Breadcrumb

    Breadcrumb

    103
  • Capsule Tabs

    Capsule Tabs

    21
  • Pagination

    Pagination

    27
  • Pagination with Ellipsis

    Pagination with Ellipsis

    18

Explore more

Part of Hirael — browse the full library on 21st.dev.