Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Mouse Follower

Public visualization

Mouse Follower

0 stars1🌍 Public
HHui Wang
Last edited Nov 8, 2022
Created on Nov 8, 2022

A yellow circle tracks the mouse's position across an SVG canvas. The visualization uses React's useState hook to store and update mouse coordinates, which are captured through the SVG's onMouseMove event handler. D3's arc function is imported but the circle is drawn using standard SVG elements, with React rendering the scene at a fixed 960 by 500 pixel resolution.

AI-generated description

A program that follows your mouse with a circle.

Comments

Sign in to join the discussion.

MIT Licensed