Skip to main content
100%

Mouse Follower

✓ Published1🌍 Public
Lluispee
Last edited Mar 26, 2021
Created on Mar 26, 2021

A black circle of radius 30 follows the mouse cursor across a 960-by-500 SVG canvas. React's `useState` and `useCallback` hooks track the cursor’s client coordinates, updating the circle’s `cx` and `cy` attributes on every `mousemove` event. D3 v5 is loaded but not used in the visible logic; rendering is purely React-driven SVG.

AI-generated description

Smiley face implementation with React & D3.

MIT Licensed

Similar vizzes