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 px
gap0.60
strength0.300
radius1.00
speedcolor11
seedUsage
import { Lattice } from "zerogravity/lattice"
<Lattice />Generated from the controls above. Only props that differ from their defaults are shown.
Props
| Property | Type | Default | Description |
|---|---|---|---|
gap | number | 56 | Gap. Range 24 to 140 px. |
strength | number | 0.6 | Push. Range 0 to 1. |
radius | number | 0.3 | Reach. Range 0.08 to 0.8. |
speed | number | 1 | Drift. Range 0 to 3. |
color | string | "#7fd2ff" | Thread. |
seed | number | 11 | Seed. Range 1 to 60. |
children | ReactNode | — | Content laid over the mesh. |
enableOnTouch | boolean | false | Let a coarse pointer push the mesh too. |
Dependencies
0 external runtime dependencies
Ships with nothing but React.