
Header block five is built around scroll polish. The outer header stays fixed, while the inner container transitions into a narrower, rounded, blurred shell after the page scrolls.
The CTA pair is different from the earlier headers: Sign In is quiet, while Contact Sales gets the outlined button treatment. That makes this variant a better fit for sales-led pages than product-led signup pages.
The header starts wide with a max width of max-w-6xl. When data-scrolled is active, it tightens to max-w-4xl, adds ring and shadow treatment, and keeps the nav centered.
This gives the page a premium sticky navigation feel without requiring a fully animated floating pill.
Use this header for B2B SaaS, enterprise product pages, agency landing pages, and pages where Contact Sales matters more than self-serve signup.
The header uses useScroll, useMotionValueEvent, and useMedia. The shrinking behavior is class-driven through data-scrolled, with transition utilities controlling width, padding, background, ring, and shadow.
The mobile state expands the header into a full-screen blurred menu and keeps the accordion navigation pattern.
Yes. It uses background, card, foreground, border, ring, and shadow tokens that work across themes.
Yes. Desktop gets centered navigation and CTAs; mobile gets a menu button and accordion navigation.
Yes. The CTA text and routes are regular Button and Link components.
Use it when the header should feel premium and persistent, but not as animated as block four.
Build with Tailark
Production-ready marketing blocks, pages, and illustrations for Shadcn UI.