Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Mouse Follower

Public visualization

Mouse Follower

0 stars0🌍 Public
BBJorgen
Last edited Mar 1, 2021
Created on Mar 1, 2021

A circle follows the mouse cursor across a full-screen SVG canvas. The React component uses the `useState` hook to track the mouse's `clientX` and `clientY` coordinates, updating on every `onMouseMove` event. It renders a single `<circle>` element with its `cx` and `cy` attributes set to the current mouse position.

AI-generated description

Smiley face implementation with React.

Comments

Sign in to join the discussion.

MIT Licensed