Skip to main content
100%

Mouse Follower Simple

✓ Published1🌍 Public
Jjjlaber
Last edited Jan 12, 2023
Created on Jan 11, 2023
Forked from D3 Starter

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 description

A circle that follows the mouse.

MIT Licensed

Similar vizzes