Dot Grid

Customize Dot Grid

Dot Size10px
Gap15px
Proximity120px
Speed Trigger100
Shock Radius250px
Shock Strength5
Max Speed5000
Resistance750
Return Duration1.5s

Props

PropertyTypeDefaultDescription
dotSizenumber10Size of individual dots in pixels (2-50)
gapnumber15Gap between dots in pixels (5-100)
baseColorstring#5227FFBase color of the dots when inactive
activeColorstring#5227FFColor of the dots when active/interacting
proximitynumber120Distance for mouse proximity detection in pixels (50-300)
shockRadiusnumber250Radius of shock wave effect in pixels (100-500)
shockStrengthnumber5Strength of the shock wave effect (1-20)
resistancenumber750Resistance factor for dot movement (100-2000)
returnDurationnumber1.5Duration for dots to return to original position in seconds (0.5-5)
speedTriggernumber100Speed threshold for triggering effects (50-500)
maxSpeednumber5000Maximum speed for dot animations (1000-10000)
classNamestringcustom-dot-gridAdditional CSS class names for styling
widthstring100%Width of the dot grid container
heightstring600pxHeight of the dot grid container
enableAnimationbooleanEnable or disable dot animations
enableMouseInteractionbooleanEnable or disable mouse interaction effects
qualitystringhighRendering quality - 'low', 'medium', or 'high'

Dependencies

three@react-three/fiber

Created with ❤️ by Cybershoora