Formation Gallery
Photo cards that flow between rings, a spiral, a globe and a loose field: the group turns slowly, cards gather or swirl into the next shape, and a click opens one in the centre.
pixikit.com/docs/components/formation-gallery
Customize
Preset
Count56
Formation
Interval6.0s
Autoplay
Transition
Rings3
Card size0px
Clearance0.36
Spin1.00
Shape
Radius0.24
Depth0.00
Hover scale1.20×
Shadow0.60
Accent color
Background color
Open on click
Captions
Interactive
Draggable
Pause on hover
Seed0
Paused
Props
34| Name | Type | Default | Description |
|---|---|---|---|
items | FormationGalleryItem[] | DEFAULT_ITEMS | The photos; they repeat until count is filled. |
preset | "community" | "orbits" | "globe" | "galaxy" | "drift" | "showreel" | "community" | A named setup. Values you leave at their defaults follow it. |
count | number | 56 | How many cards are shown. |
formations | FormationName[] | ALL | The formations the gallery moves through, in order. |
formation | "cycle" | FormationName | "cycle" | Shows one formation only; 'cycle' moves through the formations list. |
interval | number | 6 | Seconds each formation is held. |
autoplay | boolean | true | Moves through the formations on a timer. The arrow keys and the ref still work when it is off. |
transition | "gather" | "swirl" | "direct" | "gather" | How cards travel between formations. |
rings | number | 3 | Number of rings in the orbits formation. |
cardSize | number | 0 | Card size in pixels. 0 sizes the cards to fit the count. |
clearance | number | 0.36 | Size of the empty middle, as a share of the formation. |
spin | number | 1 | Rotation speed; negative turns the other way. |
shape | "auto" | "square" | "rounded" | "circle" | "auto" | Card shape. 'auto' picks one per formation. |
radius | number | 0.24 | Corner rounding of rounded cards, as a share of the card size. |
depth | number | 0 | How far the whole group tilts toward the pointer. 0 keeps it flat. |
hoverScale | number | 1.2 | Scale of the card under the pointer. It holds still so it can be clicked. |
shadow | number | 0.6 | Strength of the shadow under the cards. |
accentColor | string | "#B19EEF" | Color of the thin ring around the card under the pointer. |
backgroundColor | string | "transparent" | Color behind the cards. |
openOnClick | boolean | true | Clicking a card enlarges it in the centre. Click again or press Escape to put it back. |
captions | boolean | true | Shows the title and subtitle of the opened card. |
interactive | boolean | true | Enables tilt, hover and clicking. |
draggable | boolean | true | Dragging spins the formation, with inertia. |
pauseOnHover | boolean | true | Stops the rotation and holds the formation while the pointer is on a card. |
seed | number | 0 | Changes the random placement. |
paused | boolean | false | Freezes rotation and the timer. |
dpr | number | 2 | Kept for parity with canvas galleries; this one is drawn by the browser at its own pixel ratio. |
ariaLabel | string | "Photo formation" | Label announced for the gallery. |
onFormationChange | (formation: FormationName, index: number) => void | None | Called when the formation changes. |
onOpen | (item: FormationGalleryItem, index: number) => void | None | Called when a card is opened. |
ref | Ref<FormationGalleryHandle> | None | Handle with next, previous, setFormation and close. |
children | ReactNode | None | Content shown in the empty middle. |
className | string | None | |
style | CSSProperties | None |