Skip to main content
100%

Smile face II

✓ Published0🌍 Public
Jjay-chitsakdanon
Last edited Aug 31, 2021
Created on Aug 30, 2021
Forked from Smile face III

A smiley face is rendered as a single SVG circle that follows the mouse cursor across a 960-by-500 viewport. The circle’s center coordinates update on every mouse movement via React state and the `onMouseMove` event handler. The example uses React 16.9 and D3 v7’s `arc` import (though unused), with SVG rendering managed by ReactDOM. The circle starts at the center and tracks the pointer’s client coordinates in real time.

AI-generated description

A program that follows your mouse with a circle

MIT Licensed

Similar vizzes