Toggle Sidebar B
AppearanceLight & dark mode D

Splash Cursor

Liquid splash burst at cursor with curling ripples and waves.

Default

Move the pointer to stir the fluid. Like the original, the effect is a fixed overlay over the whole viewport, not just the preview, and it ignores pointer events so nothing underneath is blocked.

Props are read once when the component mounts, so the controls below remount it on every change.

Light previewReplay previewOpen in new tab

Move Your Cursor

Customize

Density Dissipation3.5
Velocity Dissipation2
Pressure0.1
Curl3
Splat Radius0.2
Splat Force6000
Color Update Speed10
Color

API Reference

SplashCursor

PropTypeDefaultDescription
SIM_RESOLUTIONnumber128Fluid simulation resolution for velocity fields.
DYE_RESOLUTIONnumber1440Resolution of the color/dye texture.
CAPTURE_RESOLUTIONnumber512Resolution used for certain capture operations (rarely changed).
DENSITY_DISSIPATIONnumber3.5Rate at which color/density dissipates over time.
VELOCITY_DISSIPATIONnumber2Rate at which velocity dissipates over time.
PRESSUREnumber0.1Base pressure for the fluid simulation.
PRESSURE_ITERATIONSnumber20Number of Jacobi iterations used for the pressure solver.
CURLnumber3Amount of vorticity/curl to apply for swirling effects.
SPLAT_RADIUSnumber0.2Radius of the 'splat' effect when user interacts.
SPLAT_FORCEnumber6000Force of the fluid 'splat' on each interaction.
SHADINGbooleantrueToggles simple lighting/shading on the fluid.
COLOR_UPDATE_SPEEDnumber10Frequency at which pointer colors are re-randomized.
RAINBOW_MODEbooleantrueWhen true, uses randomly cycling rainbow colors. When false, uses the COLOR prop.
COLORstring'#ff0000'Hex color for the cursor effect when RAINBOW_MODE is false.
BACK_COLORobject{ r: 0.5, g: 0, b: 0 }Base background color for the fluid. Not always used if TRANSPARENT is true.

Accessibility

Keyboard shortcuts and ARIA behavior.

  • The canvas ignores pointer events and is purely decorative.
  • Mount it only when the user has not asked for reduced motion.