Pop Menu
A logo bubble and a round menu button that open an overlay of big tilted pill links, popping in one after another and taking their own color on hover.
pixikit.com/docs/components/pop-menu
Customize
Menu bg
Menu content color
Use fixed position
Animation ease
Animation duration0.50s
Stagger delay0.12s
Props
12| Name | Type | Default | Description |
|---|---|---|---|
logo | ReactNode | string | DEFAULT_LOGO | Logo content shown in the first bubble: an image src or an element. |
onMenuClick | (open: boolean) => void | None | Called whenever the menu toggle changes; receives the open state. |
className | string | "" | |
style | CSSProperties | None | |
menuAriaLabel | string | "Toggle menu" | Accessible label for the toggle button. |
menuBg | string | "#fff" | Background color of the logo and toggle bubbles and of the pills. |
menuContentColor | string | "#111" | Color of the menu icon lines and of the pill text. |
useFixedPosition | boolean | false | Positions the menu with fixed instead of absolute, so it follows the viewport. |
items | PopMenuItem[] | DEFAULT_ITEMS | The menu items: `{ label, href, ariaLabel, rotation, hoverStyles: { bgColor, textColor } }`. |
animationEase | string | "back.out(1.5)" | Ease of the bubble pop: a GSAP-style name such as `back.out(1.5)` or `power3.out`, or any CSS timing function. |
animationDuration | number | 0.5 | Duration of each bubble and label animation, in seconds. |
staggerDelay | number | 0.12 | Base stagger between bubbles, in seconds, with a slight random variance. |