Arc Gallery
Image cards on an arc that you drag, scroll or step through: they ripple as they move, snap to the nearest card and open to the full image.
pixikit.com/docs/components/arc-gallery
Customize
Bend3.0
Item size1.00
Item aspect0.78
Gap0.26
Border radius0.05
Wave1.00
Fade edges0.12
Shadow0.25
Text color
Font
Show titles
Scroll speed2.0
Scroll ease0.050
Snap
Auto scroll0.0
Grayscale
Open on click
Intro
Dpr
Props
25| Name | Type | Default | Description |
|---|---|---|---|
items | ArcGalleryItem[] | DEFAULT_ITEMS | The images. text is the title under a card, description shows under it when the card is open, alt names the image. |
bend | number | 3 | Curvature of the arc: positive lowers the cards at the edges, negative lifts them, 0 lays them flat. |
itemSize | number | 1 | Card height relative to the container, from 0.2 to 2. |
itemAspect | number | 0.78 | Card width divided by height; images are cropped to fill. |
gap | number | 0.26 | Space between cards as a fraction of the card width. |
borderRadius | number | 0.05 | Corner radius as a fraction of the card size, from 0 (square) to 0.5 (fully round). |
wave | number | 1 | How much the cards ripple while the gallery moves; 0 keeps them flat. |
fadeEdges | number | 0.12 | Fades the cards out toward the left and right edges, from 0 to 0.5 of the width. |
shadow | number | 0.25 | Strength of the soft shadow under each card. |
textColor | string | "#ffffff" | Color of the titles and the keyboard focus ring. |
font | string | "bold 30px Figtree" | CSS font shorthand for the titles; the size scales with the cards, so 30px is the default size. |
fontUrl | string | None | A stylesheet URL or a font file to load for the titles; the loaded family replaces the family in font. |
showTitles | boolean | true | Shows the title of each card under it. |
scrollSpeed | number | 2 | How far the gallery travels per drag or wheel movement. |
scrollEase | number | 0.05 | How quickly the gallery catches up with the input, from 0.001 (floaty) to 1 (instant). |
snap | boolean | true | Settles on the nearest card after dragging or scrolling. |
autoScroll | number | 0 | Speed of an automatic drift: 1 moves about one card every four seconds, negative values drift the other way. |
grayscale | boolean | false | Shows the images in grayscale and brings the color back on hover, focus or when opened. |
openOnClick | boolean | true | Clicking a card opens it to its full image; when off, clicking a card centers it. |
intro | boolean | true | Glides the cards in when the gallery mounts. |
onItemClick | (item: ArcGalleryItem, index: number) => void | None | Called when a card is clicked. |
onActiveChange | (index: number) => void | None | Called when a different card becomes the centered one. |
dpr | number | None | Kept for parity with canvas galleries; images here are drawn by the browser at the display's own pixel ratio. |
className | string | None | |
style | CSSProperties | None |