Skip to main content
100%

Moving circle with mouse cursor

✓ Published1🌍 Public
DDhvanil Vaghasiya
Last edited Jan 27, 2023
Created on Jan 27, 2023

A yellow circle follows the cursor across a 960x500 SVG canvas. The application tracks the mouse pointer's client coordinates and re-renders the circle's center position on every move event. Built with React 16.9 and D3 v5, it uses React's `useState` hook to manage the dynamic mouse position state, while SVG elements handle the visual rendering within a fullscreen, overflow-hidden layout.

AI-generated description

Smiley face implementation with React & D3.

MIT Licensed

Similar vizzes