Backgroundsstable
Wake
Water ripple
Water over a floor: the pointer pushes waves that spread, interfere and bend what lies underneath.
Customize
Waterhow the pointer pushes it and how long it keeps moving
0.60
strength14
radius2.40
decaySurfacewhat lies underneath, and how the water bends and lights it
surface1.00
refraction1.00
lightpixelatedUsage
import { Wake } from "zerogravity/wake"
<Wake>
<Content />
</Wake>Generated from the controls above. Only props that differ from their defaults are shown.
Props
| Property | Type | Default | Description |
|---|---|---|---|
strength | number | 0.6 | Strength. Range 0 to 1. |
radius | number | 14 | Radius. Range 4 to 40. |
decay | number | 2.4 | Decay. Range 0.5 to 6. |
surface | "tiles" | "grid" | "checker" | "tiles" | Surface. |
refraction | number | 1 | Refraction. Range 0 to 3. |
light | number | 1 | Light. Range 0 to 3. |
pixelated | boolean | false | Pixelated. |
children | ReactNode | — | Content above the water. Stays crisp and interactive. |
src | string | — | An image to lay under the water, cover-fitted. Falls back to surface. |
enableOnTouch | boolean | true | Answer a finger: a tap drops a ripple, a sideways drag leaves a wake. Vertical scrolling and pinch-zoom still work. |
disabled | boolean | false | Holds one still, refracted frame instead of animating. |
respectReducedMotion | boolean | true | Under prefers-reduced-motion, show the still frame. |
Dependencies
0 external runtime dependencies
Ships with nothing but React.