🌍 Public
Viewing a saved revision (read-only)
8798e94064b8465c9af4715bf456e309
Make Something - Gauri Jare
A teal rectangle follows the mouse cursor across a full-window SVG canvas. The code uses d3.select to create the SVG and append the rectangle, setting its width and height based on the window dimensions. A mousemove event handler updates the rectangle’s x and y attributes with the cursor’s event coordinates. The plain black-stroked shape moves freely, demonstrating basic D3 interaction with the DOM.
AI-generated descriptionA circle that follows the mouse.