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

    93
  • Ecommerce Category Page

    Ecommerce Category Page

    81
  • Feature Grid Spotlight Cards

    Feature Grid Spotlight Cards

    80
  • Split Login

    Split Login

    74
  • Comparison Section

    Comparison Section

    70
  • Dithered Shader CTA

    Dithered Shader CTA

    69
  • FAQ Two Column

    FAQ Two Column

    67
  • Comparison Table

    Comparison Table

    66

More in Navigation

View all
  • Sidebar

    Sidebar

    331
  • Navbar with Theme Toggle

    Navbar with Theme Toggle

    53
  • Stacked Circular Footer

    Stacked Circular Footer

    440
  • Progress Bar Stepper

    Progress Bar Stepper

    53
  • Pagination

    Pagination

    97
  • Dorpdown Navigation

    Dorpdown Navigation

    234
  • Nav List Card

    Nav List Card

    38
  • Tabs

    Tabs

    65

Explore more

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