Skip to main content
100%

Mouse follower

✓ Published1🌍 Public
LLaura Brown
Last edited Jan 21, 2025
Created on Jan 17, 2025
Forked from Fork of Hello HTML

A React component tracks the mouse position across an SVG canvas and renders a solid black circle that follows the pointer. The application uses React's `useState` and `useCallback` hooks to manage and update the mouse coordinates on every `mousemove` event. The SVG viewport is set to 960 by 500 pixels with a circle radius of 30. The code draws only the moving circle, with no additional data or visual elements beyond the pointer-following behavior.

AI-generated description

A program that follows your mouse with a circle

MIT Licensed

Similar vizzes