Skip to main content
100%

Fork of Mouse follower

✓ Published0🌍 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.

MIT Licensed

Similar vizzes