Fork of Mouse Follower
✓ Published0🌍 Public
This interactive visualization displays a yellow circle that follows the mouse cursor across an SVG canvas. Built with React, it uses the `useState` hook to track mouse coordinates and `useCallback` to optimize the event handler. The `onMouseMove` event on the SVG element updates the circle’s `cx` and `cy` attributes, while the circle’s radius remains fixed at 30 pixels. The code initializes the circle at the canvas center and renders everything through ReactDOM.
AI-generated descriptionKreis soll Maus folgen (Fertig)
MIT Licensed