Skip to content

Concave Wall Gallery

Free

A curved wall of pictures that bends around the viewer. Use it as a hero for a portfolio, a shop, or a launch page.

  • React 19
  • Tailwind CSS 4

Added Nov 24, 2026 · MIT + Commons Clause

Playground

Loading the preview

Props

Pass the cards as items, then place the stage and the caption parts. Give the root a height.

concave-wall-places.tsx

ConcaveWallGallery

<div>
PropTypeDefaultDescription
itemsRequired—
driveMotionValue<number>—Moves the look from a value, in cards: 1.5 is halfway from card 1 to card 2. Use it for scroll or time. The hand no longer moves the look, and a drag stays with the page.
finishes—The finishes finish may switch between. The shaders hold all of them, so a switch fades and never builds the program again. A look item that offers a choice passes its choices.
budgetnumber—The number of cards in the look. It rounds up to whole copies of the items.
cardAspectnumber—Card width / card height. Default: the one the look was made for.
driftnumber—Cards per second while nobody touches the gallery.
renderer"auto""css"—css forces flat cards, as a page with no WebGL gets.
cardScalenumber0.76The size of the prints on the wall.
gapnumber0.12The space between the prints, as a share of a print.
curvenumber1How deep the wall bows away from you: 2 bows it twice as much.
finish"clean""smear""smear"The surface of the prints in motion: smear adds streaks of color at the sides, clean keeps them plain.
...props<div> attributes—Every other attribute goes to the <div>, with a ref.
  • Use curve for how strong the curve is: 2 halves the radius.
  • Use finish="clean" to drop the color streak on the side cards; the default is smear.
TabMoves focus to the stage. The focus ring shows on the front card.
← →Moves to the card before or after. The arrows swap in a right-to-left page.
HomeorEndMoves to the first or the last card.
Move
glide · Previous, Next, and the arrow keys move one card in about 0.46s; a far card takes up to 0.86s
Throw
glide · a drag release lands where the cards would be 320ms later, on the nearest card
Rest
progress · with `drift`, the cards move on their own, in cards a second; after a touch the drift waits 5s and eases back in
  1. AddedConcave Wall Gallery.
Open the release