Skip to main content
Public

Share visualization

Loading preview…

Fork of 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

Fork of Mouse Follower

0
RRahel Gunaratne
Last edited May 11, 2021
Created on May 11, 2021
Forked from Mouse Follower

A circle follows the mouse cursor across a blank SVG canvas, with its position updating in real time to mirror the pointer’s movements. The example demonstrates a simple interactive overlay using React’s `useState` and `useCallback` hooks to track mouse coordinates, rendered as an SVG `<circle>` element positioned by `cx` and `cy` attributes. The code uses the React and ReactDOM libraries (version 16.9.0) via a `bundle.js`, with mouse events handled directly on the SVG element. No external data is involved; the rendering is purely responsive to user input.

AI-generated description

A program that follows your mouse with a circle.

Comments

Sign in to join the discussion.

MIT Licensed