Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Mouse Follower

Public visualization

Viewing a saved revision (read-only)

c229ade4728e4290bd2134660d3d0afa

Mouse Follower

0 stars1🌍 Public
MMadNietzsche
Last edited Jul 14, 2021
Created on Jul 13, 2021

A yellow circle follows the mouse cursor across an SVG canvas, updating its position in real time as the pointer moves. The visualization uses React's `useState` and `useCallback` hooks to track mouse coordinates, which are then passed to the SVG circle's `cx` and `cy` attributes. The D3 library is imported but only for its `arc` function, which is unused; the rendering relies entirely on React and SVG properties.

AI-generated description

A program that follows your mouse with a circle