type RipplesPreset = 'default' | 'subtle' | 'calm' | 'glossy' | 'viscous';
interface RipplesOptions {
/** Image or video URL to distort. Default: the element's own media source or CSS background-image. */
imageUrl?: string | null;
/** Named parameter preset applied before individual overrides. Default null. */
preset?: RipplesPreset | null;
/** Simulation grid size (power of two works best). Default 256. */
resolution?: number;
/** Drop radius in px for an element with a 1200px longest side; scales 0.5x–1.3x with element size. Default 30. */
dropRadius?: number;
/** Refraction strength. 0 disables refraction. Default 0.05. */
perturbance?: number;
/** React to pointer input: true (hover & click), 'click', 'hover', or false / 'none'. Default true. */
interactive?: boolean | 'click' | 'hover' | 'none';
/** Automatic random raindrops: false (off), true (400 ms), or interval in ms. Default false. */
rain?: boolean | number;
/** Prevent page scrolling while dragging on touchscreens (sets touch-action: none). Default false. */
lockTouch?: boolean;
/** crossOrigin attribute for remote media, or null to disable. Default 'anonymous'. */
crossOrigin?: string | null;
/** Specular highlight: false/0 disables, true = 1.0, or an intensity. Default 0.1. */
specular?: boolean | number;
/** Wave damping, 0.8–0.999. Default 0.975. */
damping?: number;
/** Simulation speed multiplier, >= 0.1. Default 1. */
speed?: number;
/** Sleep (no CPU/GPU) once the ripples have settled. Default true. */
autoPause?: boolean;
/** Device pixel ratio used for the canvas and SVG rasterisation. Default 'auto' (capped at 2). */
dpr?: 'auto' | number;
/** Create the WebGL context on first interaction instead of at init. Default true. */
lazy?: boolean;
/**
, ,