Dot Grid

Interactive dot grid with physics-based animations and mouse effects.

Bynana UI

Welcome to the future of design

Usage

import DotGrid from './DotGrid';

<div style={{ width: '100%', height: '600px', position: 'relative' }}>
  <DotGrid
    dotSize={10}
    gap={15}
    baseColor="#5227FF"
    activeColor="#5227FF"
    proximity={120}
    shockRadius={250}
    shockStrength={5}
  />
</div>

Props

PropTypeDefaultDescription
dotSizenumber16Size of dots
gapnumber32Gap between dots
baseColorstring"#5227FF"Base dot color
activeColorstring"#5227FF"Active dot color
proximitynumber150Proximity effect radius
speedTriggernumber100Speed trigger threshold
shockRadiusnumber250Shock wave radius
shockStrengthnumber5Shock wave strength
maxSpeednumber5000Maximum speed
resistancenumber750Animation resistance
returnDurationnumber1.5Return animation duration