Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Mouse Follower

Public visualization

Mouse Follower

0 stars1🌍 Public
Aaredmond-re
Last edited Aug 31, 2021
Created on Aug 31, 2021

A black circle follows the mouse cursor across a blank SVG canvas. The example demonstrates React state management with the `useState` and `useCallback` hooks, updating circle coordinates via the `onMouseMove` event. It renders a single `<circle>` element using ReactDOM, with a fixed radius of 30 pixels, and initializes the pointer position at the center of the 960×500 viewport.

AI-generated description

Follow the mouse...

Comments

Sign in to join the discussion.

MIT Licensed