Skip to content
PixiKit

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
NameTypeDefaultDescription
itemsDarkroomStreamItem[]DEFAULT_ITEMSThe 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.
countnumber18How many photos are in the stream at once.
speednumber0.1How fast photos travel from the centre to the edge; negative sends them back in.
rushnumber0.35How much photos accelerate as they near the edge.
spiralnumber0How far photos curl around the centre on their way out.
blankAreanumber0.2Size of the empty area in the centre photos emerge from.
sizenumber0.17Photo width as a share of the stage height.
sizeVariancenumber0.25How much photo sizes differ.
aspectnumber0.8Photo width divided by height.
radiusnumber12Corner rounding, in pixels.
bordernumber0Width of the paper border, as a share of the photo width.
borderColorstring"#FFFFFF"Color of the paper and its border.
rimnumber0.12Strength of the light rim along the photo edge.
rollnumber0Largest random lean of a photo, in degrees.
developnumber0.85How long a photo takes to develop from blank paper as it travels.
edgeFadenumber0.35How early photos fade out toward the edge.
shadownumber0.5Strength of the shadow under each photo.
hoverSlownumber0.6How much the stream slows while the pointer is over it, so photos are easy to catch.
catchOnHoverbooleantrueHovering a photo catches it: it stops in place and lifts while the rest of the stream flows past.
draggablebooleantrueDrag to steer: away from the centre flies forward, toward it flies back, around it turns the stream.
wheelbooleantrueScroll to fly through the stream. Set false to leave page scrolling untouched.
captionsbooleantrueShows the title and subtitle of a caught or opened photo.
backgroundColorstring"transparent"Color behind the stream.
pausedbooleanfalseFreezes the stream.
dprnumber2Kept for parity with canvas galleries; this one is drawn by the browser at its own pixel ratio.
ariaLabelstring"Photo stream"Label announced for the gallery.
onOpen(item: DarkroomStreamItem, index: number) => voidNoneCalled when a photo is opened by a click, Enter or the ref.
onClose() => voidNoneCalled when the opened photo closes.
refRef<DarkroomStreamHandle>NoneHandle with boost, open and close.
classNamestringNone
styleCSSPropertiesNone

Related