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

1
Ddrandalldesign
Last edited Dec 30, 2024
Created on Dec 30, 2024

A yellow circle tracks the mouse cursor across a full-window SVG canvas. The visualization is built with React and ReactDOM, using the `useState` hook to store the cursor's current position. On every `onMouseMove` event, the circle's `cx` and `cy` attributes update, re-rendering the circle at the new coordinates. The code initializes the circle at the window's center and sets a fixed radius of 30 pixels.

AI-generated description

Follows mouse with a circle

Comments

Sign in to join the discussion.

MIT Licensed