Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Mouse Follower

Public visualization

Fork of Mouse Follower

0 stars0🌍 Public
Llhf552004
Last edited Feb 21, 2023
Created on Feb 21, 2023
Forked from Mouse Follower

A circle follows the cursor within an SVG canvas. The example uses React's `useState` and `useCallback` to track mouse coordinates and update the circle's position. The SVG element listens for `onMouseMove` events, and the code renders the circle using ReactDOM, with a fixed radius of 30 pixels on a 960 by 500 viewport.

AI-generated description

A program that follows your mouse with a circle.

Comments

Sign in to join the discussion.

MIT Licensed