Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Mouse Follower

Public visualization

Viewing a saved revision (read-only)

431cc4e23cac471b9b29b760978d1da8

Fork of Mouse Follower

0 stars0🌍 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)