Skip to main content
100%

Fork of Mouse Follower

✓ Published0🌍 Public
Sssarowar
Last edited Apr 5, 2022
Created on Apr 5, 2022
Forked from Mouse Follower

This example demonstrates a mouse-following circle rendered in an SVG coordinate space. The React component tracks pointer movement using a `useState` hook and updates the circle’s `cx` and `cy` attributes in response to `onMouseMove` events. The circle’s position mirrors the cursor’s `clientX` and `clientY` coordinates, with no additional data source or animation logic. The visualization relies on React 16.9 and ReactDOM, rendering directly to SVG elements with hard-coded canvas dimensions of 960 by 500 pixels.

AI-generated description

A program that follows your mouse with a circle.

MIT Licensed

Similar vizzes