Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of follow the mouse

Public visualization

Viewing a saved revision (read-only)

7eb963f5f2f24277b2ccd4a9ae73440e

Fork of follow the mouse

0 stars0🌍 Public
CCees Klap
Last edited Feb 27, 2021
Created on Feb 27, 2021
Forked from follow the mouse

A smiley face drawn with SVG circles follows the mouse cursor across a full-screen canvas. Built with React, the component tracks pointer movement through an `onMouseMove` handler and updates the circle's `cx` and `cy` coordinates via the `useState` and `useCallback` hooks. The rendering uses React DOM to mount an SVG element sized to the browser window, with the cursor position stored as state. A commented-out static smiley face suggests the interactive version replaces a fixed layout.

AI-generated description

Smiley face implementation with React.