Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Mouse Follower

Public visualization

Mouse Follower

0 stars1🌍 Public
SSun Hwy (David) Kim
Last edited Mar 24, 2022
Created on Mar 24, 2022

A yellow circle with a black outline follows the mouse cursor across a full-screen SVG canvas. The visualization responds in real time to pointer movement, with the circle’s center repositioning to match the cursor’s coordinates. Built using React, it leverages the `useState` hook to track mouse position and updates the SVG circle’s `cx` and `cy` attributes via the `onMouseMove` event handler.

AI-generated description

A program that follows your mouse with a circle.

Comments

Sign in to join the discussion.

MIT Licensed