ZeroGravity UI

Pointerstable

Diorama

Depth layers that part as the pointer moves, letting you see past the foreground.

Distant subject

Move the pointer to see more of this.

Customize

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

Usage

TSX
import { Diorama } from "zerogravity"

<Diorama />

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

Props

6 documented props on Diorama
PropertyTypeDefaultDescription
parallaxnumber46Parallax. Range 0 to 140 px.
blurnumber7Foreground blur. Range 0 to 24 px.
perspectivenumber1200Perspective. Range 400 to 2400 px.
easenumber0.11Ease. Range 0.02 to 1.
backgroundReactNode—The deepest layer, never blurred.
planesDioramaPlane[][]Foreground layers, each with its own content and depth.

Dependencies

0 external runtime dependencies

Ships with nothing but React.