Mouse Follower Simple
✓ Published1🌍 Public
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.
MIT Licensed