Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Mouse Follower

Public visualization

Viewing a saved revision (read-only)

1d7c02952ed64974911c4437f333fde1

Mouse Follower

0 stars0🌍 Public
OOleg Zhernovoy
Last edited Nov 26, 2022
Created on Nov 26, 2022
Forked from Mouse Follower

A circle tracks the user’s cursor within a 960×500 SVG canvas, updating its center position in real time as the mouse moves. Built with React, the app uses the `useState` hook to store mouse coordinates and a `useCallback` handler on the SVG’s `onMouseMove` event. The rendering is done entirely with SVG elements, and the circle’s radius is fixed at 30 pixels.

AI-generated description

A program that follows your mouse with a circle.