Skip to main content
100%

Fork of Smiley Face Part II_mouseFollower

✓ Published1🌍 Public
Hhiteshk-itis
Last edited Apr 16, 2023
Created on Apr 16, 2023

A face made of a single yellow circle follows the mouse, with the entire visage positioned at the cursor’s coordinates. Built with React 16.9, the app tracks pointer movement via an SVG `onMouseMove` handler, updating state through `useState` and `useCallback`. The rendering uses SVG elements, specifically a circle for the face and eye, drawn inside a full-window `<svg>` whose dimensions match `window.innerWidth` and `window.innerHeight`. The code includes commented-out static face parts, but the active implementation only displays the moving eye-centric circle.

AI-generated description

Smiley face implementation with React.

MIT Licensed

Similar vizzes