Skip to main content
100%

Mouse follower

✓ Published0🌍 Public
Nnecat1
Last edited Mar 15, 2021
Created on Mar 15, 2021

A single yellow smiley face, rendered as an SVG circle with two smaller black circles for eyes, follows the mouse cursor across a 960×500 viewport. The React component tracks pointer movement via an `onMouseMove` handler and updates the face’s `cx` and `cy` attributes in state. D3’s `arc` utility is imported but unused; rendering relies entirely on React’s declarative SVG elements with no data source.

AI-generated description

Smiley face implementation with React & D3.

MIT Licensed

Similar vizzes