Skip to content
PixiKit

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
NameTypeDefaultDescription
itemsArcGalleryItem[]DEFAULT_ITEMSThe images. text is the title under a card, description shows under it when the card is open, alt names the image.
bendnumber3Curvature of the arc: positive lowers the cards at the edges, negative lifts them, 0 lays them flat.
itemSizenumber1Card height relative to the container, from 0.2 to 2.
itemAspectnumber0.78Card width divided by height; images are cropped to fill.
gapnumber0.26Space between cards as a fraction of the card width.
borderRadiusnumber0.05Corner radius as a fraction of the card size, from 0 (square) to 0.5 (fully round).
wavenumber1How much the cards ripple while the gallery moves; 0 keeps them flat.
fadeEdgesnumber0.12Fades the cards out toward the left and right edges, from 0 to 0.5 of the width.
shadownumber0.25Strength of the soft shadow under each card.
textColorstring"#ffffff"Color of the titles and the keyboard focus ring.
fontstring"bold 30px Figtree"CSS font shorthand for the titles; the size scales with the cards, so 30px is the default size.
fontUrlstringNoneA stylesheet URL or a font file to load for the titles; the loaded family replaces the family in font.
showTitlesbooleantrueShows the title of each card under it.
scrollSpeednumber2How far the gallery travels per drag or wheel movement.
scrollEasenumber0.05How quickly the gallery catches up with the input, from 0.001 (floaty) to 1 (instant).
snapbooleantrueSettles on the nearest card after dragging or scrolling.
autoScrollnumber0Speed of an automatic drift: 1 moves about one card every four seconds, negative values drift the other way.
grayscalebooleanfalseShows the images in grayscale and brings the color back on hover, focus or when opened.
openOnClickbooleantrueClicking a card opens it to its full image; when off, clicking a card centers it.
introbooleantrueGlides the cards in when the gallery mounts.
onItemClick(item: ArcGalleryItem, index: number) => voidNoneCalled when a card is clicked.
onActiveChange(index: number) => voidNoneCalled when a different card becomes the centered one.
dprnumberNoneKept for parity with canvas galleries; images here are drawn by the browser at the display's own pixel ratio.
classNamestringNone
styleCSSPropertiesNone

More media components in Pro

View all

Related