Skip to main content
100%

Fork of Smiley Face Part II

✓ Published1🌍 Public
SShubham Pathak
Last edited Nov 30, 2021
Created on Nov 30, 2021

This interactive React application renders a single black circle that follows the mouse cursor across a 960 by 500 pixel SVG canvas. It uses the `useState` and `useCallback` hooks to track cursor coordinates from the `onMouseMove` event, updating the circle’s `cx` and `cy` attributes in real time. The visualization demonstrates a minimal, event-driven approach to direct manipulation within an SVG viewport.

AI-generated description

implement mouse movement

MIT Licensed

Similar vizzes