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
Ddiogomirandabarbosa25@gmail.com
Last edited Jul 28, 2024
Created on Jul 28, 2024

A circle follows the mouse cursor across an SVG canvas in this React visualization. The app tracks the pointer's `clientX` and `clientY` coordinates on every `mousemove` event, storing them in state and updating the circle's `cx` and `cy` attributes accordingly. React 16.9 handles the component state with the `useState` and `useCallback` hooks, while `ReactDOM.render` mounts the application to the DOM. The rendering uses React's JSX syntax to produce the SVG output.

AI-generated description

A program that follows your mouse with a circle

Comments

Sign in to join the discussion.

MIT Licensed