Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of mouse move

Public visualization

Fork of mouse move

0 stars1🌍 Public
SStefan Apostol
Last edited Dec 19, 2022
Created on Dec 19, 2022
Forked from React data

A single black dot follows the mouse as it moves across a full-screen SVG canvas. The dot’s position is updated in real time using React state, with the `onMouseMove` event capturing client coordinates. Rendered entirely with SVG `circle` elements, the example uses React 16.9 and ReactDOM to manage re-renders, while the dot’s radius remains fixed at 40 pixels.

AI-generated description

Follow a dot

Comments

Sign in to join the discussion.

MIT Licensed