Skip to main content
100%

Mouse follower

✓ Published0🌍 Public
HHaris Vidimlic
Last edited Feb 15, 2022
Created on Feb 15, 2022

A single eye shape rendered as an SVG circle tracks mouse movement across a 960-by-500 canvas. The example demonstrates mouse-event handling in a React component, logging each move to the console while the circle itself remains fixed at the center. Built with React 16.9 and d3.v7, it uses the `onMouseMove` React event handler and d3’s `arc` import, though the arc function is not applied to the visible circle. The page hides scrollbars via CSS `overflow:hidden`, and the mouse-follower interaction is minimal, showing only the event trigger without updating the circle’s position.

AI-generated description

A bare minimum HTML page.

MIT Licensed

Similar vizzes