CursorsNew

Magnetic Dots

A dot grid that parts around the cursor or gathers to it. Dots near the cursor glow brighter.

Customize

color

A Codearia component ยท Terms of use

More in Pro

View all

Props

9 properties
PropertyTypeDefaultDescription
colorstring"#e5e5e5"Dot color.
spacingnumber22Distance between dots, in pixels.
dotSizenumber1.6Dot radius, in pixels.
radiusnumber120Cursor reach, in pixels.
strengthnumber0.6How far the dots move.
mode'repel' | 'attract'"repel"Dots run from the cursor or gather to it.
autoDemobooleantrueA phantom cursor wanders over the grid until the visitor moves the mouse.
childrenReactNodeโ€”Content on top of the effect.
classNamestringโ€”Classes for the wrapper.

Dependencies

3 required packages

npm install ogl clsx tailwind-merge

Related components

View all