Globe Menu
A draggable sphere of image tiles that snaps the nearest one forward, zooms in on it and shows its title, description and link button.
pixikit.com/docs/components/globe-menu
Customize
Count160
Tile size0.63
Roundness0.20
Zoom1.65
Pull back1.00
Stretch0.60
Inertia0.60
Autoplay3.0s
Grayscale
Dim0.50
Intro
Show info
Theme
Accent color
Background color
Props
21| Name | Type | Default | Description |
|---|---|---|---|
items | GlobeMenuItem[] | DEFAULT_ITEMS | Items to show. They repeat around the sphere when there are fewer items than tiles. |
count | number | 160 | Number of tiles on the sphere. |
tileSize | number | 0.63 | Tile size relative to the space around it. Lower values leave wider gaps. |
roundness | number | 0.2 | Tile shape, from 0 for squares to 1 for circles. |
zoom | number | 1.65 | How close the camera sits to the active tile when the sphere is at rest. |
pullBack | number | 1 | How far the camera pulls back while you drag. 0 keeps it still. |
stretch | number | 0.6 | How much the tiles stretch with fast motion. |
inertia | number | 0.6 | How long the sphere keeps spinning after you let go, from 0 to 1. |
autoplay | number | 3 | Seconds between automatic steps to the next tile. 0 turns it off. Pauses on hover and focus. |
grayscale | boolean | true | Shows every tile except the active one in grayscale. |
dim | number | 0.5 | Fades the tiles around the active one toward the background once the sphere settles, from 0 to 1. |
intro | boolean | true | Spins the sphere into place when it loads. |
showInfo | boolean | true | Shows the title, description and link button of the active item. |
renderInfo | (item: GlobeMenuItem, index: number, moving: boolean) => ReactNode | None | Replaces the default title, description and button with your own overlay. |
theme | "dark" | "light" | "dark" | Colors of the text, the button and the placeholder tiles. |
accentColor | string | None | Background of the link button. |
backgroundColor | string | None | Background behind the sphere. Transparent by default. |
onActiveChange | (item: GlobeMenuItem, index: number) => void | None | Called when a new item settles in front. |
onItemClick | (item: GlobeMenuItem, index: number) => void | None | Called when the active tile or its button is clicked, or Enter is pressed. |
className | string | None | Extra class names for the container. |
style | CSSProperties | None | Inline styles for the container. |