Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

mouse follower

Public visualization

mouse follower

0 stars1🌍 Public
Bblackbottt
Last edited May 6, 2022
Created on May 6, 2022
Forked from Hello Smiley Face

An SVG circle tracks the mouse as it moves across a full-window canvas. The visualization updates the circle's horizontal and vertical coordinates in real time based on pointer events. Built with React's `useState` and `useCallback` hooks, the component re-renders whenever the mouse position changes. The example uses D3.js v5 for SVG rendering and React 18 for component management.

AI-generated description

A program that has a circle which constantly follows mouse position!

Comments

Sign in to join the discussion.

MIT Licensed