Skip to main content
100%

Assignment 3: 66 DOD

✓ Published1🌍 Public
YYashashvi Singh
Last edited Mar 16, 2022
Created on Mar 15, 2022

Four colored circles follow the mouse pointer across a full-window SVG canvas, each offset diagonally from the previous one so they trail in a line. The React component tracks pointer movement via the SVG `onMouseMove` event, storing coordinates in state, and re-renders the circles at the updated positions. The visualization uses `react` and `react-dom` with the `useState` hook to manage the mouse position and render SVG circle elements.

AI-generated description

A circle that follows your mouse pointer

MIT Licensed

Similar vizzes