Skip to main content
100%

Fork of Mouse Follower

✓ Published0🌍 Public
Hhukbk
Last edited Jan 24, 2022
Created on May 14, 2021

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 description

Kreis soll Maus folgen (Fertig)

MIT Licensed

Similar vizzes