Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

follow

Public visualization

follow

0 stars1🌍 Public
SSamuele Greco
Last edited Feb 4, 2022
Created on Feb 3, 2022

A React application renders two SVG circles that follow the mouse cursor across a 960 by 500 viewport. The component tracks pointer position via the `onMouseMove` event and the `useState` hook, updating the circle coordinates in real time. The circles are positioned with an offset equal to twice their radius, creating a linked pair that trails the cursor. The code uses React 16.9 and renders directly to SVG elements through `ReactDOM.render`.

AI-generated description

folklow mouse with circle

Comments

Sign in to join the discussion.

MIT Licensed