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 stars1Public
CChris Briggs
Last edited Nov 13, 2021
Created on Nov 13, 2021

A single gray circle tracks the mouse cursor across an SVG canvas, updating its position in real time. Built with React, the app uses the `useState` hook to store the cursor’s coordinates and a `handleMouseMove` callback triggered by the SVG’s `onMouseMove` event to update them. Rendered without D3 or external data, the circle’s `cx` and `cy` attributes are bound directly to the state values.

AI-generated description

A program that follows your mouse with a circle.

Comments

Sign in to join the discussion.

MIT Licensed