Band Menu
A tall list of large links with one liquid band that glides to the row under the pointer, stretching as it moves, and scrolls a marquee of words and pictures inside it.
pixikit.com/docs/components/band-menu
Customize
Speed60px/s
Direction
Follow cursor0.40
Duration0.50s
Stretch0.60
Magnet0.25
Band inset0px
Carry content
Band radius0px
Text color
Bg color
Marquee bg color
Marquee text color
Dividers
Dim inactive
Align
Show index
Show arrow
Image shape
Intro
Props
27| Name | Type | Default | Description |
|---|---|---|---|
items | BandMenuItem[] | DEFAULT_ITEMS | Menu rows: `{ text, link, image, marquee, meta }`. |
speed | number | 60 | Marquee speed in px per second. |
direction | "left" | "right" | "alternate" | "left" | Which way the marquee runs. Alternate flips every other row. |
followCursor | number | 0.4 | How much moving the cursor sideways speeds up or reverses the marquee, from 0 to 1. |
duration | number | 0.5 | Time in seconds the band takes to glide to a row. |
stretch | number | 0.6 | How much the band stretches like liquid while it moves, from 0 for rigid to 1. |
magnet | number | 0.25 | How much the band leans toward the cursor inside a row, from 0 to 1. |
bandInset | number | 0 | Gap in px between the band and the row edges. |
carryContent | boolean | false | Moves the marquee with the band instead of keeping it fixed in each row. |
bandRadius | number | 0 | Corner radius of the band in px. Use a large value for a pill. |
textColor | string | "#ffffff" | Color of the menu text. |
bgColor | string | "#120F17" | Background color of the menu. |
marqueeBgColor | string | "#ffffff" | Background color of the band. |
marqueeTextColor | string | "#120F17" | Text color inside the band. |
borderColor | string | "rgba(255, 255, 255, 0.14)" | Color of the lines between rows. |
dividers | boolean | true | Draws lines between rows. |
dimInactive | boolean | false | Fades the other rows while the band is on one. |
align | "center" | "left" | "center" | Alignment of the row labels. |
showIndex | boolean | false | Numbers each row. |
showArrow | boolean | false | Adds an arrow to the end of each row. |
imageShape | "pill" | "rounded" | "circle" | "pill" | Shape of the images in the band. |
intro | boolean | true | Rows rise in, the lines draw and the band sweeps once down the menu on mount. |
activeIndex | number | None | Marks the current page row. |
onItemClick | (item: BandMenuItem, index: number, event: ReactMouseEvent<HTMLElement>) => void | None | Called when a row is clicked. |
ariaLabel | string | "Menu" | Accessible name of the navigation. |
className | string | "" | |
style | CSSProperties | None |