Skip to main content
100%

Mouse Follower

✓ Published1🌍 Public
Ssatyenataagyaa
Last edited Mar 5, 2021
Created on Mar 4, 2021

A circle follows the mouse cursor across an SVG canvas in this React-based visualization. The example uses React's `useState` and `useCallback` hooks to track `clientX` and `clientY` coordinates from a mouse move event, updating the circle's `cx` and `cy` attributes in real time. Rendered with D3 v6 for SVG elements and React 17, the circle starts centered at (480, 250) with a radius of 30 pixels. No data source is involved; the visualization demonstrates interactive event handling and state-driven positioning.

AI-generated description

A program that follow your mouse with a circle.

MIT Licensed

Similar vizzes