Skip to main content
100%

Make Something - Gauri Jare

✓ Published0🌍 Public
GGauri Jare
Last edited Jan 14, 2023
Created on Jan 14, 2023

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 description

A circle that follows the mouse.

MIT Licensed

Similar vizzes