Skip to main content
100%

Mouse Follower

✓ Published1🌍 Public
Jjwlam83
Last edited Jan 8, 2022
Created on Jan 8, 2022
Forked from Hello VizHub

A black circle follows the user's mouse cursor across an SVG canvas. The visualization uses React state to track mouse coordinates via an `onMouseMove` event handler, updating the circle's `cx` and `cy` attributes in real time. D3's `range` function is imported but unused in this example. The rendering relies on React's `useState` and `useCallback` hooks to manage and memoize the position updates, with no external data or complex interaction beyond the positional tracking.

AI-generated description

A program that follows your mouse with a circle

MIT Licensed

Similar vizzes