🌍 Public
Viewing a saved revision (read-only)
fa4805ad19ac48188c2ce37616b94262
Fork of Mouse Follower Simple
A simple interactive visualization demonstrates pointer tracking by rendering a single circle that follows the mouse cursor across the full browser window. The SVG canvas fills the viewport using `window.innerWidth` and `window.innerHeight`. D3's `selection.on('mousemove', ...)` event listener updates the circle's `cx` and `cy` attributes to the cursor's coordinates. The example uses D3 v7's `select` to append and style the SVG and circle elements, showcasing basic event handling and attribute manipulation.
AI-generated descriptionA program that follows your mouse with a circle