Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Mouse Follower

Public visualization

Mouse Follower

0 stars0🌍 Public
Nninarosenberg
Last edited Jul 13, 2021
Created on Jul 13, 2021

A yellow circle with a black outline renders at the center of an SVG canvas. The circle follows the moving mouse pointer across the visualization, logging its coordinates to the console. The example uses React with react-dom to render the SVG element and its onMouseMove event handler, tracking clientX and clientY positions to update the circle's location.

AI-generated description

A program that follows your mouse with a circle.

Comments

Sign in to join the discussion.

MIT Licensed