Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of MouseFollower

Public visualization

Fork of MouseFollower

0 stars0🌍 Public
SSihleZwane
Last edited May 22, 2023
Created on May 22, 2023
Forked from MouseFollower

A single circle follows the mouse cursor across a blank SVG canvas. The circle’s position updates on every mouse move event, directly using the event’s client coordinates. The implementation uses React state and the `useCallback` hook within `index.js`, rendering through ReactDOM’s `render` method. The SVG is created with hardcoded width and height, and the circle’s radius is fixed at 30 pixels.

AI-generated description

A program that follows your mouse on the screen

Comments

Sign in to join the discussion.

MIT Licensed