Spiral Gallery
Photos flowing along a spiral that grows from the centre: each one scales with its distance, the dial winds by drag or scroll, and a click brings a photo upright to the middle.
pixikit.com/docs/components/spiral-gallery
Customize
Preset
Arms1
Per turn18
Pitch7.0°
Center density1.30
Center fade0.50
Card size0.28
Roundness0.22
Tilt1.00
Rotation0°
Direction
Speed0.35
Center x0.50
Center y0.50
Shadow0.50
Background color
Open on click
Captions
Draggable
Wheel
Pause on hover
Interactive
Paused
Props
31| Name | Type | Default | Description |
|---|---|---|---|
items | SpiralGalleryItem[] | DEFAULT_ITEMS | The photos; they repeat along the spiral. |
preset | "spiral" | "circles" | "shell" | "galaxy" | "tunnel" | "upright" | "spiral" | A named setup. Values you leave at their defaults follow it. |
arms | number | 1 | Number of spiral arms. |
perTurn | number | 18 | Photos in one full turn of an arm. |
pitch | number | 7 | How fast the spiral opens, in degrees; small values wind tightly. |
centerDensity | number | 1.3 | How far the spiral keeps winding into the centre. |
centerFade | number | 0.5 | How far out from the centre photos fade into the background, 0 to 1. Faded photos cannot be hovered or opened. |
cardSize | number | 0.28 | Photo size, as a share of its distance from the centre. |
roundness | number | 0.22 | Corner rounding; 1 makes circles. |
tilt | number | 1 | How much photos turn with the spiral; 0 keeps them upright. |
rotation | number | 0 | Turns the whole spiral, in degrees. |
direction | "counterclockwise" | "clockwise" | "counterclockwise" | Which way the spiral winds. |
speed | number | 0.35 | Flow speed; negative flows inward. |
centerX | number | 0.5 | Horizontal position of the centre, 0 to 1. |
centerY | number | 0.5 | Vertical position of the centre, 0 to 1. |
shadow | number | 0.5 | Strength of the shadow under the photos. |
backgroundColor | string | "transparent" | Color behind the photos. |
openOnClick | boolean | true | Clicking a photo brings it upright to the centre at full size. Click again, scroll or press Escape to put it back. |
captions | boolean | true | Shows the title and subtitle of the opened photo. |
draggable | boolean | true | Drag around the centre to wind the spiral like a dial, with a little momentum. |
wheel | boolean | true | Scrolling moves the photos along the spiral, one photo per notch. |
pauseOnHover | boolean | true | Hovering a photo stops the flow and lifts that photo slightly. |
interactive | boolean | true | Lets the pointer and keyboard drive the gallery. Arrow keys move one photo at a time; Enter opens the highlighted photo. |
paused | boolean | false | Stops the automatic flow. Scrolling and dragging still work. |
dpr | number | 2 | Kept for parity with canvas galleries; this one is drawn by the browser at its own pixel ratio. |
ariaLabel | string | "Spiral gallery" | Label announced for the gallery. |
onOpen | (item: SpiralGalleryItem, index: number) => void | None | Called when a photo is opened. |
ref | Ref<SpiralGalleryHandle> | None | Handle with step, open and close. |
children | ReactNode | None | Content laid over the gallery. |
className | string | None | |
style | CSSProperties | None |