Navigation
Center Logo Nav
A full-width bar with the logo in the middle, menu links on the left and social icons with the main button on the right. It gets lower once the page scrolls.
npx motionsnack add center-logo-navCustomize
Background
<CenterLogoNav />Props
16 properties
| Property | Type | Default | Description |
|---|---|---|---|
| avatar | { src: string; alt?: string } | null | sample portrait | Round photo in the profile mode. |
| logo | { src: string; alt?: string } | null | null | Logo image for the logo mode. |
| links | { label: string; href?: string }[] | 4 sample links | Menu links. |
| socials | { icon: string; href?: string }[] | instagram, linkedin, x | Social profiles as icons. Icons: x, facebook, instagram, youtube, tiktok, linkedin, pinterest, dribbble, behance, github, whatsapp, telegram, threads; anything else gets a link icon. |
| cta | { label: string; href?: string } | sample button | Main button. Leave the label empty to hide it. |
| buttonColor | string | near-black / near-white in dark | Colour of the main button. |
| buttonTextColor | string | white / near-black in dark | Text colour of the main button. |
| buttonRadius | number | fully round | Corner radius of the buttons in px. |
| identityMode | 'profile' | 'name' | 'logo' | 'name' | A profile (photo, name and role), the name alone, or a logo image. |
| name | string | 'Northwind' | Name. Shown in the profile and name modes, and when the logo has no image. |
| role | string | 'Design studio' | Role or tagline under the name in the profile mode. |
| sticky | boolean | true | Keep the bar at the top of the window while the page scrolls. |
| shrinkOnScroll | boolean | true | Make the bar lower and the logo smaller once the page scrolls. |
| maxWidth | number | 1280 | Widest the content of the bar gets. |
| Button | ComponentType | built-in | Button component from the library for the filled button. Without one the section draws its own. |
| background | string | '#000000' | Bar background. |
About Center Logo Nav
A full-width header built around the logo or name in the centre. Menu links sit on the left with an underline that grows on hover; social icons and the main button sit on the right. The bar starts tall and, once the page scrolls, smoothly gets lower while the logo shrinks and the background turns translucent with a blur. On narrow screens the logo moves left and a two-line button opens a panel with large links, the button and the social icons.
What's included
- Logo, menu links, socials and button
- Logo centred between links and button
- Bar gets lower on scroll
- Translucent blur once scrolled
- Mobile panel with staggered links
- Light and dark look
- Type
- Animated navigation section for Next.js
- Library
- Sections · Navigation
- Stack
- Next.js, React, Tailwind CSS
- Added
- 2026-09-20
- Install
npx motionsnack add center-logo-nav