Darkroom Stream
Photos streaming out of the centre and developing like prints as they come closer: hover one to catch it, click to open it, drag or scroll to steer the stream.
pixikit.com/docs/components/darkroom-stream
Customize
Preset
Count18
Speed0.10
Rush0.35
Spiral0.00
Blank area0.20
Size0.170
Size variance0.25
Aspect0.80
Radius12px
Border0.000
Border color
Rim0.12
Roll0.0°
Develop0.85
Edge fade0.35
Shadow0.50
Hover slow0.60
Catch on hover
Draggable
Wheel
Captions
Background color
Paused
Props
32| Name | Type | Default | Description |
|---|---|---|---|
items | DarkroomStreamItem[] | DEFAULT_ITEMS | The photos; they repeat until count is filled. |
preset | "stream" | "spiral" | "prints" | "warp" | "vortex" | "drift" | "recede" | "stream" | A named look. Values you leave at their defaults follow it. |
count | number | 18 | How many photos are in the stream at once. |
speed | number | 0.1 | How fast photos travel from the centre to the edge; negative sends them back in. |
rush | number | 0.35 | How much photos accelerate as they near the edge. |
spiral | number | 0 | How far photos curl around the centre on their way out. |
blankArea | number | 0.2 | Size of the empty area in the centre photos emerge from. |
size | number | 0.17 | Photo width as a share of the stage height. |
sizeVariance | number | 0.25 | How much photo sizes differ. |
aspect | number | 0.8 | Photo width divided by height. |
radius | number | 12 | Corner rounding, in pixels. |
border | number | 0 | Width of the paper border, as a share of the photo width. |
borderColor | string | "#FFFFFF" | Color of the paper and its border. |
rim | number | 0.12 | Strength of the light rim along the photo edge. |
roll | number | 0 | Largest random lean of a photo, in degrees. |
develop | number | 0.85 | How long a photo takes to develop from blank paper as it travels. |
edgeFade | number | 0.35 | How early photos fade out toward the edge. |
shadow | number | 0.5 | Strength of the shadow under each photo. |
hoverSlow | number | 0.6 | How much the stream slows while the pointer is over it, so photos are easy to catch. |
catchOnHover | boolean | true | Hovering a photo catches it: it stops in place and lifts while the rest of the stream flows past. |
draggable | boolean | true | Drag to steer: away from the centre flies forward, toward it flies back, around it turns the stream. |
wheel | boolean | true | Scroll to fly through the stream. Set false to leave page scrolling untouched. |
captions | boolean | true | Shows the title and subtitle of a caught or opened photo. |
backgroundColor | string | "transparent" | Color behind the stream. |
paused | boolean | false | Freezes the stream. |
dpr | number | 2 | Kept for parity with canvas galleries; this one is drawn by the browser at its own pixel ratio. |
ariaLabel | string | "Photo stream" | Label announced for the gallery. |
onOpen | (item: DarkroomStreamItem, index: number) => void | None | Called when a photo is opened by a click, Enter or the ref. |
onClose | () => void | None | Called when the opened photo closes. |
ref | Ref<DarkroomStreamHandle> | None | Handle with boost, open and close. |
className | string | None | |
style | CSSProperties | None |