ZeroGravity UI

Backgroundsstable

Lattice

Elastic line mesh

A line mesh that bulges away from the pointer, and lets go where it stretches.

Customize

Mesha strand that is stretched too far simply lets go
56 pxgap
0.60strength
0.300radius
1.00speed
color
11seed

Usage

TSX
import { Lattice } from "zerogravity/lattice"

<Lattice />

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

Props

8 documented props on Lattice
PropertyTypeDefaultDescription
gapnumber56Gap. Range 24 to 140 px.
strengthnumber0.6Push. Range 0 to 1.
radiusnumber0.3Reach. Range 0.08 to 0.8.
speednumber1Drift. Range 0 to 3.
colorstring"#7fd2ff"Thread.
seednumber11Seed. Range 1 to 60.
childrenReactNode—Content laid over the mesh.
enableOnTouchbooleanfalseLet a coarse pointer push the mesh too.

Dependencies

0 external runtime dependencies

Ships with nothing but React.