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
| Property | Type | Default | Description |
|---|---|---|---|
gridSpacing | number | 28 | Pixel distance between grid intersection points. |
curveStrength | number | 0 | Barrel-distortion amount applied to the resting grid (0 = flat). |
diagonals | boolean | false | Draw diagonal lines across each grid cell. |
repelRadius | number | 100 | Cursor influence radius in pixels. |
force | number | 14 | Maximum pixel displacement applied at the cursor centre. |
easeSpeed | number | 0.1 | Lerp factor per frame — higher = snappier response. |
damping | number | 0.85 | Velocity damping per frame (0–1). Lower = bouncier. |
springK | number | 0.08 | Spring constant that pulls nodes back to their origin. |
waveAmplitude | number | 0 | Vertical wave offset amplitude in pixels (0 = disabled). |
waveSpeed | number | 1 | Speed multiplier for the wave animation. |
ambientNoise | boolean | false | Add per-node sinusoidal noise for an organic breathing look. |
ambientNoiseAmplitude | number | 4 | Pixel amplitude of the ambient noise. |
ambientNoiseSpeed | number | 0.3 | Speed multiplier of the ambient noise oscillation. |
animationMode | "none" | "breathing" | "pulse-glow" | "shimmer" | "auto-ripple" | "none" | Idle animation applied to the grid continuously. |
animationSpeed | number | 1 | Speed multiplier for the chosen animation mode. |
animationIntensity | number | 1 | Intensity / amplitude multiplier for the chosen animation mode. |
lineWidth | number | 1 | Base stroke width in pixels. |
glowIntensity | number | 0.7 | Glow brightness near the cursor (0–1). |
glowBlur | number | 0 | Canvas shadowBlur radius for a soft bloom effect (0 = disabled). |
lineColor | string | "#d35af8" | Base line colour (hex / rgb / CSS variable). |
glowColor | string | "#b8a0ff" | Line colour at maximum glow intensity. |
backgroundColor | string | "transparent" | Canvas background. Use "transparent" to inherit the parent background. |
colorMode | "solid" | "gradient" | "rainbow" | "solid" | Line colour strategy. |
gradientColors | string[] | ["#5a4cff","#d35af8"] | Two or more hex stops used when colorMode is "gradient". |
gradientDirection | "horizontal" | "vertical" | "diagonal" | "radial" | "horizontal" | Direction of the gradient or rainbow sweep. |
rainbowSpeed | number | 0.2 | Hue cycle speed when colorMode is "rainbow". |
rainbowSaturation | number | 0.7 | HSL saturation for rainbow mode (0–1). |
rainbowLightness | number | 0.6 | HSL lightness for rainbow mode (0–1). |
vignette | boolean | false | Overlay a radial vignette that fades toward the edges. |
vignetteStrength | number | 0.6 | Vignette opacity (0–1). |
pulseOnClick | boolean | false | Emit a ripple pulse outward from the click position. |
className | string | "" | Extra CSS classes forwarded to the wrapper div. |
style | object | {} | Inline styles forwarded to the wrapper div. |
gridSpacingTypenumber
Default
28Pixel distance between grid intersection points.
curveStrengthTypenumber
Default
0Barrel-distortion amount applied to the resting grid (0 = flat).
diagonalsTypeboolean
Default
falseDraw diagonal lines across each grid cell.
repelRadiusTypenumber
Default
100Cursor influence radius in pixels.
forceTypenumber
Default
14Maximum pixel displacement applied at the cursor centre.
easeSpeedTypenumber
Default
0.1Lerp factor per frame — higher = snappier response.
dampingTypenumber
Default
0.85Velocity damping per frame (0–1). Lower = bouncier.
springKTypenumber
Default
0.08Spring constant that pulls nodes back to their origin.
waveAmplitudeTypenumber
Default
0Vertical wave offset amplitude in pixels (0 = disabled).
waveSpeedTypenumber
Default
1Speed multiplier for the wave animation.
ambientNoiseTypeboolean
Default
falseAdd per-node sinusoidal noise for an organic breathing look.
ambientNoiseAmplitudeTypenumber
Default
4Pixel amplitude of the ambient noise.
ambientNoiseSpeedTypenumber
Default
0.3Speed multiplier of the ambient noise oscillation.
animationModeType"none" | "breathing" | "pulse-glow" | "shimmer" | "auto-ripple"
Default
"none"Idle animation applied to the grid continuously.
animationSpeedTypenumber
Default
1Speed multiplier for the chosen animation mode.
animationIntensityTypenumber
Default
1Intensity / amplitude multiplier for the chosen animation mode.
lineWidthTypenumber
Default
1Base stroke width in pixels.
glowIntensityTypenumber
Default
0.7Glow brightness near the cursor (0–1).
glowBlurTypenumber
Default
0Canvas shadowBlur radius for a soft bloom effect (0 = disabled).
lineColorTypestring
Default
"#d35af8"Base line colour (hex / rgb / CSS variable).
glowColorTypestring
Default
"#b8a0ff"Line colour at maximum glow intensity.
backgroundColorTypestring
Default
"transparent"Canvas background. Use "transparent" to inherit the parent background.
colorModeType"solid" | "gradient" | "rainbow"
Default
"solid"Line colour strategy.
gradientColorsTypestring[]
Default
["#5a4cff","#d35af8"]Two or more hex stops used when colorMode is "gradient".
gradientDirectionType"horizontal" | "vertical" | "diagonal" | "radial"
Default
"horizontal"Direction of the gradient or rainbow sweep.
rainbowSpeedTypenumber
Default
0.2Hue cycle speed when colorMode is "rainbow".
rainbowSaturationTypenumber
Default
0.7HSL saturation for rainbow mode (0–1).
rainbowLightnessTypenumber
Default
0.6HSL lightness for rainbow mode (0–1).
vignetteTypeboolean
Default
falseOverlay a radial vignette that fades toward the edges.
vignetteStrengthTypenumber
Default
0.6Vignette opacity (0–1).
pulseOnClickTypeboolean
Default
falseEmit a ripple pulse outward from the click position.
classNameTypestring
Default
""Extra CSS classes forwarded to the wrapper div.
styleTypeobject
Default
{}Inline styles forwarded to the wrapper div.
Crafted withbyMohammad Tasin
