Skip to main content
Public

Share visualization

Loading preview…

Fork of Smiley Face Part II

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

Fork of Smiley Face Part II

0
MMorgan
Last edited Dec 14, 2024
Created on Nov 27, 2024

A React component renders a single SVG circle that follows the mouse cursor across the viewport. The application tracks pointer movement through the SVG's `onMouseMove` event handler, updating React state with the cursor's `clientX` and `clientY` coordinates. D3 v5 is loaded via CDN but is not actively used in the interaction logic. The circle's `cx` and `cy` attributes bind directly to the state, causing the shape to re-render at the new position on every mouse movement.

AI-generated description

A Program that collows your mouse witha circle.

Comments

Sign in to join the discussion.

MIT Licensed