Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Mouse follower

Public visualization

Mouse follower

0 stars0🌍 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.

Comments

Sign in to join the discussion.

MIT Licensed