Skip to content
PixiKit

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
NameTypeDefaultDescription
itemsGlobeMenuItem[]DEFAULT_ITEMSItems to show. They repeat around the sphere when there are fewer items than tiles.
countnumber160Number of tiles on the sphere.
tileSizenumber0.63Tile size relative to the space around it. Lower values leave wider gaps.
roundnessnumber0.2Tile shape, from 0 for squares to 1 for circles.
zoomnumber1.65How close the camera sits to the active tile when the sphere is at rest.
pullBacknumber1How far the camera pulls back while you drag. 0 keeps it still.
stretchnumber0.6How much the tiles stretch with fast motion.
inertianumber0.6How long the sphere keeps spinning after you let go, from 0 to 1.
autoplaynumber3Seconds between automatic steps to the next tile. 0 turns it off. Pauses on hover and focus.
grayscalebooleantrueShows every tile except the active one in grayscale.
dimnumber0.5Fades the tiles around the active one toward the background once the sphere settles, from 0 to 1.
introbooleantrueSpins the sphere into place when it loads.
showInfobooleantrueShows the title, description and link button of the active item.
renderInfo(item: GlobeMenuItem, index: number, moving: boolean) => ReactNodeNoneReplaces the default title, description and button with your own overlay.
theme"dark" | "light""dark"Colors of the text, the button and the placeholder tiles.
accentColorstringNoneBackground of the link button.
backgroundColorstringNoneBackground behind the sphere. Transparent by default.
onActiveChange(item: GlobeMenuItem, index: number) => voidNoneCalled when a new item settles in front.
onItemClick(item: GlobeMenuItem, index: number) => voidNoneCalled when the active tile or its button is clicked, or Enter is pressed.
classNamestringNoneExtra class names for the container.
styleCSSPropertiesNoneInline styles for the container.

Related