Skip to main content
100%

Menu_NH

✓ Published0🌍 Public
NNavak94
Last edited Mar 21, 2023
Created on Mar 21, 2023

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 description

A circle that follows the mouse.

MIT Licensed

Similar vizzes