Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

mouse_folow

Public visualization

mouse_folow

0 stars1🌍 Public
TTOKIHISA
Last edited Jan 8, 2022
Created on Jan 8, 2022

A yellow circle follows the mouse cursor across an SVG canvas, its position updating in real time. The React app tracks pointer coordinates through an `onMouseMove` event handler, storing them in state and re-rendering the circle's `cx` and `cy` attributes. This interactive sketch uses React's `useState` hook and ReactDOM, with D3.js loaded but not actively employed in the visible logic.

AI-generated description

Half way towards a smiley face.

Comments

Sign in to join the discussion.

MIT Licensed