ZeroGravity UI

Mediaexperimental

Undertow

Liquid image reveal

Two images and one membrane: the pointer parts the surface and the picture beneath comes through.

A tap works too, so the reveal is not lost on a touch screen.

Customize

Disturbancehow far the pointer parts the surface, and how it settles
0.300radius
0.55strength
0.38softness
1.00speed
2.40linger
interactive

Usage

TSX
<Undertow />

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

Props

12 documented props on Undertow
PropertyTypeDefaultDescription
radiusnumber0.3Radius. Range 0.08 to 0.6.
strengthnumber0.55Strength. Range 0 to 1.
softnessnumber0.38Softness. Range 0 to 1.
speednumber1Speed. Range 0.2 to 3.
lingernumber2.4Linger. Range 0.2 to 8.
interactivebooleantrueReact to the pointer.
frontSrcstring—The image on top, the one the pointer parts.
backSrcstring—The image underneath, revealed where the surface is disturbed.
altstring—Describes the pair; both images render into one canvas.
objectPositionstring"50% 50%"Where both images sit when the box crops them.
aspectstring—Locks the box to a ratio, for example `16 / 10`.
disabledbooleanfalseHolds the still, composed state instead of animating.

Dependencies

0 external runtime dependencies

Ships with nothing but React.

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