ZeroGravity UI

Pointerexperimental

Wash

A new colour that spreads outward from wherever the surface was touched.

Customize

Triggerclick, automatic, or both
mode
4000 msinterval
Bloomshape and pace of the spreading colour
1400 msduration
0.35softness
paletteName

Usage

TSX
<Wash>
    <div>Hero copy</div>
</Wash>

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

Props

6 documented props on Wash
PropertyTypeDefaultDescription
mode"click" | "auto" | "both""both"Mode.
intervalnumber4000Interval. Range 600 to 15000 ms.
durationnumber1400Duration. Range 200 to 4000 ms.
softnessnumber0.35Edge softness. Range 0 to 0.9.
childrenReactNode—Content laid over the wash. Stays interactive.
colorsstring[]—The cycle of colours to bloom through.

Dependencies

0 external runtime dependencies

Ships with nothing but React.

Experimental: still under evaluation and not part of the published package yet.