Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Mouse follower

Public visualization

Viewing a saved revision (read-only)

7673adc292434b8299c624b8705dabd6

Fork of Mouse follower

0 stars0🌍 Public
Nnpinta
Last edited Dec 11, 2022
Created on Dec 11, 2022
Forked from Mouse follower

A smiley face made of a single circle follows the mouse cursor across a full-window SVG canvas. The React app tracks pointer movement through an `onMouseMove` event handler, storing the cursor’s client coordinates in state and re-rendering the circle’s `cx` and `cy` attributes based on that position. The code uses React 16.9’s `useState` and `useCallback` hooks, with D3 v7 loaded for potential visualization utilities, though the rendering itself is plain SVG without D3-specific data joins or scales.

AI-generated description

Smiley face implementation with React.