Skip to main content
100%

Mouse Follower

✓ Published1🌍 Public
Sshencode76
Last edited Jan 2, 2022
Created on Jan 2, 2022

This example shows a minimal interactive SVG visualization where a small circle follows the mouse cursor as it moves across the viewport. Built with React and rendered through SVG, the app tracks pointer movement via the `onMouseMove` event handler on the `<svg>` element, logging each move to the console. The circle’s position is fixed at the center of the window, while the event handler only records movement without altering the visual. The code uses React’s `createElement` and `ReactDOM.render` to mount the component, with window dimensions defining the SVG’s width and height.

AI-generated description

A program that follows your mouth with a circle

MIT Licensed

Similar vizzes