Bend
3
Item Size
Item Aspect
0.78
Gap
0.26
Border Radius
0.05
Wave
Edge Fade
0.12
Shadow
0.25
Scroll Speed
2
Scroll Ease
0.05
Auto Scroll
0

More components in Pro

Galleries, cards and interactive pieces for pages that need more than the basics.

View all 255
25 properties
itemsArray<{ image: string; text?: string; description?: string; alt?: string }>12 sample photosImages to show. `text` is the title under each card, `description` appears under the title when a card is open and `alt` names the image for screen readers.
bend3Curvature of the arc. Positive values arch the cards down at the edges, negative values lift them, 0 lays them flat.
itemSizeCard height relative to the container, from 0.2 to 2.
itemAspect0.78Card width divided by height. Images are cropped to fill the card.
gap0.26Space between cards as a fraction of the card width.
borderRadius0.05Corner radius as a fraction of the card size, from 0 (square) to 0.5 (fully round).
waveHow much the cards ripple while the gallery moves. 0 keeps them flat.
fadeEdges0.12Fades the cards out toward the left and right edges, from 0 to 0.5 of the width.
shadow0.25Strength of the soft shadow under each card.
textColor'#ffffff'Color of the titles, the keyboard focus ring and the placeholder shown while images load.
font'bold 30px Figtree'CSS font shorthand for the titles. The size scales with the cards, so 30px means the default size and larger values make the titles bigger.
fontUrlundefinedFont to load for the titles. Accepts a stylesheet URL (e.g. a Google Fonts link) or a font file (.woff2, .woff, .ttf, .otf). The loaded family replaces the family in `font`.
showTitlesShows the title of each card underneath it.
scrollSpeed2How far the gallery travels per drag or wheel movement.
scrollEase0.05How quickly the gallery catches up with the input, from 0.001 (floaty) to 1 (instant).
snapSettles on the nearest card after dragging or scrolling.
autoScrollSpeed of an automatic drift, where 1 moves about one card every four seconds and negative values drift the other way. It pauses on hover, while dragging, while a card is open and briefly after any input.
grayscaleShows the images in grayscale and brings the color back on hover, focus or when opened.
openOnClickClicking a card opens it to its full image. Click it again, click outside it, press Escape or use the close button to return. When off, clicking a card centers it.
Glides the cards in when the gallery mounts.
onItemClick(item, index) => voidCalled when a card is clicked.
onActiveChange(index) => voidCalled when a different card becomes the centered one.
dprautoMaximum device pixel ratio, capped at 2.
Extra class names for the container.
Inline styles for the container.
itemsArray<{ image: string; text?: string; description?: string; alt?: string }>

Images to show. `text` is the title under each card, `description` appears under the title when a card is open and `alt` names the image for screen readers.

Default12 sample photos
bendnumber

Curvature of the arc. Positive values arch the cards down at the edges, negative values lift them, 0 lays them flat.

Default3
itemSizenumber

Card height relative to the container, from 0.2 to 2.

itemAspectnumber

Card width divided by height. Images are cropped to fill the card.

Default0.78
gapnumber

Space between cards as a fraction of the card width.

Default0.26
borderRadiusnumber

Corner radius as a fraction of the card size, from 0 (square) to 0.5 (fully round).

Default0.05
wavenumber

How much the cards ripple while the gallery moves. 0 keeps them flat.

fadeEdgesnumber

Fades the cards out toward the left and right edges, from 0 to 0.5 of the width.

Default0.12
shadownumber

Strength of the soft shadow under each card.

Default0.25
textColorstring

Color of the titles, the keyboard focus ring and the placeholder shown while images load.

Default'#ffffff'
fontstring

CSS font shorthand for the titles. The size scales with the cards, so 30px means the default size and larger values make the titles bigger.

Default'bold 30px Figtree'
fontUrlstring

Font to load for the titles. Accepts a stylesheet URL (e.g. a Google Fonts link) or a font file (.woff2, .woff, .ttf, .otf). The loaded family replaces the family in `font`.

Defaultundefined
showTitlesboolean

Shows the title of each card underneath it.

scrollSpeednumber

How far the gallery travels per drag or wheel movement.

Default2
scrollEasenumber

How quickly the gallery catches up with the input, from 0.001 (floaty) to 1 (instant).

Default0.05
snapboolean

Settles on the nearest card after dragging or scrolling.

autoScrollnumber

Speed of an automatic drift, where 1 moves about one card every four seconds and negative values drift the other way. It pauses on hover, while dragging, while a card is open and briefly after any input.

grayscaleboolean

Shows the images in grayscale and brings the color back on hover, focus or when opened.

openOnClickboolean

Clicking a card opens it to its full image. Click it again, click outside it, press Escape or use the close button to return. When off, clicking a card centers it.

introboolean

Glides the cards in when the gallery mounts.

onItemClick(item, index) => void

Called when a card is clicked.

onActiveChange(index) => void

Called when a different card becomes the centered one.

dprnumber

Maximum device pixel ratio, capped at 2.

Defaultauto

Extra class names for the container.

Inline styles for the container.