Skip to main content
100%

circle following cursor

✓ Published3🌍 Public
MMalcolm Mead
Last edited Jan 16, 2022
Created on Jan 14, 2022
Forked from Fork of Hello HTML

A yellow circle with a black outline follows the cursor across a blank SVG canvas. The circle’s position is updated on mouse movement using React state and the `onMouseMove` event handler. The visualization is built with React 17 and D3 v7, rendering SVG elements directly. The code uses `useState` and `useCallback` to track and set cursor coordinates, demonstrating interactive data-driven updates without any external dataset.

AI-generated description

A bare minimum HTML page.

MIT Licensed

Similar vizzes