🌍 Public
Viewing a saved revision (read-only)
e66da7f4559a4b7483890a2db1643748
Mouse Follower Simple
This example shows a single circle following the mouse cursor as it moves across the browser window. The visualization uses D3 v7 to create an SVG canvas sized to the viewport and appends a circle element at an initial position. Through D3's event handling, the `mousemove` listener updates the circle's `cx` and `cy` attributes based on the cursor's coordinates, producing a direct and immediate tracking effect.
AI-generated descriptionA circle that follows the mouse.