Skip to main content
Public

Share visualization

Loading preview…

Mouse follower

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Before sharing, review the publishing checklist.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

Mouse follower

0
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