Aperture Gallery
An oval of photo cards that closes into a camera iris: the cards lean into overlapping blades around a round opening, and a clicked photo fills that opening.
pixikit.com/docs/components/aperture-gallery
Customize
Preset
Count28
Mode
Interval6.0s
Hold4.0s
Morph duration1.8s
Stagger0.70
Speed6°/s
Fin60°
Pupil0.52
Card aspect0.78
Radius0.18
Gap0.10
Depth1.00
Shade0.60
Background color
Focus on click
Captions
Draggable
Wheel
Pause on hover
Paused
Props
31| Name | Type | Default | Description |
|---|---|---|---|
items | ApertureGalleryItem[] | DEFAULT_ITEMS | The photos; they repeat until count is filled. |
preset | "iris" | "aperture" | "gallery" | "bloom" | "pulse" | "still" | "iris" | A named setup. Values you leave at their defaults follow it. |
count | number | 28 | How many cards are in the ring. |
mode | "cycle" | "gallery" | "iris" | "cycle" | 'gallery' keeps the oval, 'iris' keeps the closed ring, 'cycle' alternates. |
interval | number | 6 | Seconds the oval is shown in the cycle. |
hold | number | 4 | Seconds the iris is held in the cycle. |
morphDuration | number | 1.8 | Seconds one card takes to move between the two shapes. |
stagger | number | 0.7 | How far the cards are spread in time during a change; 0 moves them together. |
speed | number | 6 | Turning speed in degrees per second; negative turns the other way. |
fin | number | 60 | Lean of the blades in the iris, in degrees. |
pupil | number | 0.52 | Size of the opening, as a share of the ring. |
cardAspect | number | 0.78 | Card width divided by height. |
radius | number | 0.18 | Corner rounding, as a share of the card. |
gap | number | 0.1 | Space between cards in the oval, as a share of the card. |
depth | number | 1 | How far the blades tilt out of the page in the iris. |
shade | number | 0.6 | How dark the shaded side of a blade gets. |
backgroundColor | string | "transparent" | Color behind the cards. |
focusOnClick | boolean | true | Clicking a card flies its photo into the opening while the ring closes around it. Click again or press Escape to put it back. |
captions | boolean | true | Shows the title and subtitle of the focused photo. |
draggable | boolean | true | Drag around the ring to turn it, with inertia. |
wheel | boolean | true | Scroll to turn the ring, one card per notch. Set false to leave page scrolling untouched. |
pauseOnHover | boolean | true | Stops the ring and the cycle while the pointer rests on a card. |
paused | boolean | false | Freezes the turning and the cycle. |
dpr | number | 2 | Kept for parity with canvas galleries; this one is drawn by the browser at its own pixel ratio. |
ariaLabel | string | "Photo ring" | Label announced for the gallery. |
onFocusChange | (item: ApertureGalleryItem | null, index: number) => void | None | Called when a photo gains or loses focus. |
onStateChange | (state: ApertureGalleryState) => void | None | Called when the ring settles into the oval or the iris. |
ref | Ref<ApertureGalleryHandle> | None | Handle with open, close, setState and rotate. |
children | ReactNode | None | Content shown in the middle of the ring. |
className | string | None | |
style | CSSProperties | None |