Skip to main content
100%

Mouse Follower

✓ Published1🌍 Public
MMark Lam
Last edited Jul 15, 2021
Created on Jul 15, 2021
Forked from React Face

A small circle follows the cursor as it moves over a blank SVG canvas, providing a direct, real-time mapping of pointer position to graphical output. The application uses React's `useState` hook to store the mouse coordinates, which are updated via the SVG `onMouseMove` event handler and passed as `cx` and `cy` attributes of the rendered `<circle>` element. The visualization demonstrates a minimal, single-element interactive scene built with React and rendered as SVG.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes