Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

MouseFollower

Public visualization

MouseFollower

0 stars1🌍 Public
SSihleZwane
Last edited May 22, 2023
Created on May 22, 2023

A small yellow circle follows the mouse cursor across an SVG canvas. The circle’s position is driven by React state, updated via a `useCallback` handler on the SVG’s `onMouseMove` event, which reads the native event’s `clientX` and `clientY` coordinates. The visualization is rendered using React and D3.js, with a fixed 960×500 viewport and no external dataset.

AI-generated description

A program that follows your mouse on the screen

Comments

Sign in to join the discussion.

MIT Licensed