Skip to main content
100%

Mouse Follower

✓ Published1🌍 Public
DDrew Dudley
Last edited Jan 4, 2022
Created on Jan 4, 2022

A full-window SVG renders a single fixed-radius circle that tracks the pointer as it moves across the viewport. The circle’s center coordinates are updated via React state, managed through the `useState` and `useCallback` hooks, with each `mousemove` event on the SVG element. The initial position is centered at 480,250, and the code uses React 17 and D3 v7, though D3 is loaded but not actively used in the logic.

AI-generated description

A program that follows your mouse with a circle.

MIT Licensed

Similar vizzes