Menu

Mouse Repel Grid

Customize

Grid Spacing28
Curve Strength0
Line Width1.8
Repel Radius100
Force14
Ease Speed0.1
Spring K0.08
Damping0.85
Wave Amplitude0
Ambient Amplitude4
Ambient Speed0.3
Glow Intensity0.7
Glow Blur0
Vignette Strength0.6
Wave Speed1
Rainbow Speed0.2
Rainbow Saturation0.7
Rainbow Lightness0.6
Animation Speed1
Animation Intensity1

Props

gridSpacingnumber

Pixel distance between grid intersection points.

Default28
curveStrengthnumber

Barrel-distortion amount applied to the resting grid (0 = flat).

Default0
diagonalsboolean

Draw diagonal lines across each grid cell.

Defaultfalse
repelRadiusnumber

Cursor influence radius in pixels.

Default100
forcenumber

Maximum pixel displacement applied at the cursor centre.

Default14
easeSpeednumber

Lerp factor per frame — higher = snappier response.

Default0.1
dampingnumber

Velocity damping per frame (0–1). Lower = bouncier.

Default0.85
springKnumber

Spring constant that pulls nodes back to their origin.

Default0.08
waveAmplitudenumber

Vertical wave offset amplitude in pixels (0 = disabled).

Default0
waveSpeednumber

Speed multiplier for the wave animation.

Default1
ambientNoiseboolean

Add per-node sinusoidal noise for an organic breathing look.

Defaultfalse
ambientNoiseAmplitudenumber

Pixel amplitude of the ambient noise.

Default4
ambientNoiseSpeednumber

Speed multiplier of the ambient noise oscillation.

Default0.3
animationMode"none" | "breathing" | "pulse-glow" | "shimmer" | "auto-ripple"

Idle animation applied to the grid continuously.

Default"none"
animationSpeednumber

Speed multiplier for the chosen animation mode.

Default1
animationIntensitynumber

Intensity / amplitude multiplier for the chosen animation mode.

Default1
lineWidthnumber

Base stroke width in pixels.

Default1
glowIntensitynumber

Glow brightness near the cursor (0–1).

Default0.7
glowBlurnumber

Canvas shadowBlur radius for a soft bloom effect (0 = disabled).

Default0
lineColorstring

Base line colour (hex / rgb / CSS variable).

Default"#d35af8"
glowColorstring

Line colour at maximum glow intensity.

Default"#b8a0ff"
backgroundColorstring

Canvas background. Use "transparent" to inherit the parent background.

Default"transparent"
colorMode"solid" | "gradient" | "rainbow"

Line colour strategy.

Default"solid"
gradientColorsstring[]

Two or more hex stops used when colorMode is "gradient".

Default["#5a4cff","#d35af8"]
gradientDirection"horizontal" | "vertical" | "diagonal" | "radial"

Direction of the gradient or rainbow sweep.

Default"horizontal"
rainbowSpeednumber

Hue cycle speed when colorMode is "rainbow".

Default0.2
rainbowSaturationnumber

HSL saturation for rainbow mode (0–1).

Default0.7
rainbowLightnessnumber

HSL lightness for rainbow mode (0–1).

Default0.6
vignetteboolean

Overlay a radial vignette that fades toward the edges.

Defaultfalse
vignetteStrengthnumber

Vignette opacity (0–1).

Default0.6
pulseOnClickboolean

Emit a ripple pulse outward from the click position.

Defaultfalse
classNamestring

Extra CSS classes forwarded to the wrapper div.

Default""
styleobject

Inline styles forwarded to the wrapper div.

Default{}

Crafted withbyMohammad Tasin