Skip to content
PixiKit

Wrap Wall

A gallery wall that curves around the viewer: panels at the sides come closer, the wall drifts on its own, and a drag, flick or scroll turns it.

pixikit.com/docs/components/wrap-wall

Customize

Preset
Aspect1.25
Size0.46
Curvature0.72
Distance4.0
Tilt0.0°
Gap16px
Radius14px
Reflection0.06
Dim0.35
Autoplay
Speed0.16
Interval4.0s
Snap
Inertia0.50
Pause on hover
Draggable
Wheel
Captions
Controls
Background color
Paused

Props

31
NameTypeDefaultDescription
itemsWrapWallItem[]DEFAULT_ITEMSImages hung around the wall, in order. Title and subtitle caption the centred image; href makes clicking it navigate.
preset"rotunda" | "panorama" | "gallery" | "cinema" | "seamless" | "crown""rotunda"A named layout. Values you leave at their defaults follow it.
startIndexnumber0The image centred at first.
aspectnumber1.25Panel width divided by height.
sizenumber0.46Panel height as a share of the wall height.
curvaturenumber0.72How strongly the wall bends around the viewer. 0 is a flat wall.
distancenumber4How far the viewer stands from the wall; lower values exaggerate the bend.
tiltnumber0Degrees the wall leans back (negative) or forward.
gapnumber16Space between panels, in pixels.
radiusnumber14Corner rounding of the panels, in pixels.
reflectionnumber0.06Strength of the mirror image under each panel.
dimnumber0.35How much panels away from the centre fade into the background.
autoplay"drift" | "step" | "off""drift"'drift' turns the wall slowly, 'step' moves one panel every interval, 'off' leaves it still.
speednumber0.16Drift speed in panels per second; negative turns the other way.
intervalnumber4Seconds between steps when autoplay is 'step'.
snapbooleantrueSettles with a panel centred after a drag, flick or scroll.
inertianumber0.5How long a flick carries on.
pauseOnHoverbooleantrueBrakes the motion while the pointer rests on the wall.
draggablebooleantrueGrab the wall and turn it; flicks carry on with momentum.
wheelbooleantrueScroll to turn the wall, one panel per notch. Set false to leave page scrolling untouched.
captionsbooleantrueShows the title and subtitle under the centred image.
controlsbooleantrueShows the previous and next buttons with the counter.
backgroundColorstring"transparent"Color behind the wall.
pausedbooleanfalseFreezes drift and steps.
dprnumber2Kept for parity with canvas galleries; this one is drawn by the browser at its own pixel ratio.
ariaLabelstring"Curved image wall"Label announced for the wall.
onIndexChange(index: number) => voidNoneCalled when the centred image changes.
onSelect(item: WrapWallItem, index: number) => voidNoneCalled when the centred image is clicked or Enter is pressed.
refRef<WrapWallHandle>NoneHandle with next, previous and goTo.
classNamestringNone
styleCSSPropertiesNone

Related