Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Mouse Follower

Public visualization

Mouse Follower

0 stars0🌍 Public
EEricWindler
Last edited Dec 9, 2021
Created on Dec 9, 2021

A circle follows the mouse cursor across a full-screen SVG canvas. The circle's position is bound to the mouse coordinates, updated on every mouse move event. The example uses React with a `useState` hook to manage the cursor position, and the ReactDOM `render` method to mount the component. D3.js is loaded but not actively used in the rendering logic, which relies solely on native SVG elements and React event handling. The circle is drawn with a fixed radius of 30 pixels.

AI-generated description

A mousefollowing circle.

Comments

Sign in to join the discussion.

MIT Licensed