Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Mouse Follower

Public visualization

Viewing a saved revision (read-only)

601ef87dc3654e0b9fc53993f290d257

Mouse Follower

0 stars1🌍 Public
Yyejichun@naver.com
Last edited Dec 16, 2021
Created on Dec 16, 2021

A red circle follows the mouse cursor across an SVG canvas. The visualization updates the circle’s position in real time using React state and event handling, triggered by `onMouseMove`. It renders with SVG elements in a React component, using the `useState` and `useCallback` hooks to manage position updates. The code imports the `arc` function from d3, though the current implementation only uses a basic circle element.

AI-generated description

A program that follows your mouse in a circle.