Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Mouse Follower

Public visualization

Viewing a saved revision (read-only)

b0f483a5914946d0899e88084e955708

Mouse Follower

0 stars0🌍 Public
Kkurasahakai
Last edited May 21, 2023
Created on May 21, 2023

A yellow circle follows the mouse cursor across a full-window SVG canvas. Built with React and rendered using SVG, the application tracks pointer movements through an `onMouseMove` event handler, updating the circle's `cx` and `cy` coordinates in real time. The code uses React's `useState` and `useCallback` hooks, with the SVG viewport sized to the browser's `window.innerWidth` and `window.innerHeight`.

AI-generated description

Smiley face implementation with React.