Infinite Gallery

3D infinite scrolling image gallery with drag and parallax

infinite-gallery-tw

Customize

Grid

5
14
110
2
0.06

Interaction

1
8
0.9
0.5

Fog & Color

120
320
#FFFFFF
#FFFFFF

Props

widthstring | number

Container width

Default:"100%"
heightstring | number

Container height

Default:"100%"
classNamestring

Additional CSS classes for styling

Default:""
imagesGalleryImage[]

Array of images with url + intrinsic dimensions ({ url, width, height })

Default:DEFAULT_IMAGES
densitynumber

Number of images per grid cell (1–15)

Default:5
imageSizenumber

Base size of each image plane in world units (4–40)

Default:14
cellSizenumber

Grid cell size in world units (30–300)

Default:110
viewRangenumber

How far (in cells) to render around the camera (1–4)

Default:2
fogNearnumber

Fog start distance (10–500)

Default:120
fogFarnumber

Fog end distance (50–800)

Default:320
dragSpeednumber

Drag / scroll sensitivity (0.1–5)

Default:1
driftAmountnumber

Mouse-follow parallax drift amount (0–20)

Default:8
frictionnumber

Velocity decay (0 = instant stop, 1 = never stops)

Default:0.9
autoZoomboolean

Automatically zoom forward continuously

Default:false
autoZoomSpeednumber

Speed of auto-zoom in world units per frame (0.1–3)

Default:0.5
imageRadiusnumber

Border radius on images (0–1, fraction of short edge)

Default:0.06
allowImageFocusOnClickboolean

Allow clicking images to focus/zoom on them

Default:true
backgroundColorstring

Background color (hex)

Default:"#000000"
fogColorstring

Fog color — usually matches background (hex)

Default:"#000000"