🌍 Public
Viewing a saved revision (read-only)
9043617d96dc4a4f9e7f86ea4519c0e5
Menu_NH
A single circle follows the mouse cursor across a full-screen SVG canvas. The example uses D3 v7’s `select` and `append` methods to create the SVG and circle element, then listens for `mousemove` events on the SVG to update the circle’s `cx` and `cy` attributes with the cursor’s coordinates. The page has no margins and hides overflow, so the interaction fills the entire viewport.
AI-generated descriptionA circle that follows the mouse.