Skip to main content
100%

follow the cursor

✓ Published1🌍 Public
Llucaly74@gmail.com
Last edited Sep 9, 2024
Created on Sep 9, 2024

A single circle follows the cursor within an SVG canvas, its position updating in real time. The visualization uses React’s `useState` and `useCallback` to manage mouse-move events, while D3.v7 supplies the SVG rendering via `d3.min.js`. The circle’s center coordinates (`cx`, `cy`) are set from the pointer’s `clientX` and `clientY` values, producing a direct, interactive response.

AI-generated description

A bare minimum HTML page.

MIT Licensed

Similar vizzes