ZeroGravity UI

Surfacesstable

Diorama

Layered parallax

Near and far layers that move at different speeds, so a flat composition gains real depth.

Halo One

Wireless · $249
40 h batteryNoise cancellingUSB-C

Sharp product on the far plane, labels at mid depth, blurred shapes up close

Use it when a hero, product shot or poster needs depth: the background stays sharp, nearer planes move further and blur more.

Customize

Opticshow strongly depth separates the layers
46 pxparallax
7 pxblur
1200 pxperspective
0 °tilt
0.110ease

Usage

TSX
import { Diorama } from "zerogravity/diorama"

<Diorama
    background={<ProductCard />}
    planes={[
        { content: <SpecLabels />, depth: 0.5 },
        { content: <SoftShapes />, depth: 1 },
    ]}
/>

Generated from the controls above. Only props that differ from their defaults are shown.

Props

7 documented props on Diorama
PropertyTypeDefaultDescription
parallaxnumber46Parallax. Range 0 to 140 px.
blurnumber7Foreground blur. Range 0 to 24 px.
perspectivenumber1200Perspective. Range 400 to 2400 px.
tiltnumber0Tilt. Range 0 to 20 °.
easenumber0.11Ease. Range 0.02 to 1.
backgroundReactNode—The deepest layer, never blurred.
planesDioramaPlane[][]Layers in front of the background, ordered far to near: { content, depth 0–1, blur?, opacity? }.

Dependencies

0 external runtime dependencies

Ships with nothing but React.