Animated Header: A scroll-aware navigation component for Next.js that animates based on user scroll position.
Key features:
π― Logo scales down as you scroll with Motion animations
β‘ Sticky navigation stays fixed at viewport top
π Real-time GitHub star count integration
π¨ Built-in theme toggle with dark mode support
π± Smooth tab transitions that shift horizontally on scroll
Built with Next.js, TailwindCSS, Shadcn/UI, and Motion.
The component handles scroll detection automatically and applies animations without manual event listener setup.
You can customize scroll speeds, animation timing, and tab configurations through simple prop modifications.
π Blog Post
π GitHub Repo
π Live Demo
Top comments (0)