Skip to main content
Public

Share visualization

Loading preview…

Fork of Smiley face part 1

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 1

0
SshanLU999
Last edited May 26, 2021
Created on May 26, 2021
Forked from Smiley face part 1

A yellow circle follows the mouse cursor across an SVG canvas. The interface demonstrates basic pointer tracking using React state management, where `useState` stores the cursor’s `clientX` and `clientY` coordinates on each `mousemove` event. The `circle` element’s `cx` and `cy` attributes update dynamically from this state, while `circleRadius` remains fixed at 30 pixels. Rendered entirely with SVG within a React component, the example shows how declarative data binding enables smooth, responsive interactions without additional D3 utilities.

AI-generated description

A program that follows your mouse with a circle.

Comments

Sign in to join the discussion.

MIT Licensed