Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Mouse Follower

Public visualization

Fork of Mouse Follower

0 stars1🌍 Public
SShantanu
Last edited May 14, 2021
Created on May 14, 2021
Forked from Mouse Follower

A circle follows the mouse pointer inside an SVG canvas. The React application tracks the cursor’s client coordinates and updates the circle’s center position accordingly. It uses the `useState` hook for the mouse position and `useCallback` to handle mouse movement events, rendering the circle with the SVG `<circle>` element. The code relies on React 16.9 and ReactDOM to manage the interactive state and render the visualization.

AI-generated description

A program that follows your mouse with a circle.

Comments

Sign in to join the discussion.

MIT Licensed