mouse follower NH
✓ Published0🌍 Public
A red circle follows the mouse in an inverted, mirrored motion across a full-window SVG canvas, growing in radius as the cursor moves horizontally. It uses an SVG `circle` element bound to `mousemove` events on the root `<svg>` via D3 v7's `select` and `attr` methods. The circle's `cx` and `cy` coordinates are set to negative mouse positions offset by 400, while its `r` scales with `event.x`, with `fill` hardcoded to red.
AI-generated descriptionA circle that follows the mouse.
MIT Licensed