Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Mouse Follower

Public visualization

Mouse Follower

0 stars0🌍 Public
TTyler Brown
Last edited Jun 15, 2021
Created on Jun 15, 2021

A yellow-stroked circle tracks the mouse cursor across an SVG canvas. The React component uses `useState` to store the pointer's coordinates and `useCallback` to update them on every `onMouseMove` event. Rendered with React DOM and SVG, the circle’s `cx` and `cy` attributes are bound directly to the current mouse position.

AI-generated description

A program that follows your mouse with a circle.

Comments

Sign in to join the discussion.

MIT Licensed