Skip to main content
100%

Title Here

✓ Published0🌍 Public
KKhatera Alizada
Last edited Jan 11, 2023
Created on Jan 11, 2023

A gray square follows the mouse cursor across an SVG canvas, demonstrating basic pointer tracking with D3.js. The visualization uses d3.select to create an SVG and attach a rectangle element, which responds to mousemove events by updating its x and y attributes based on the event coordinates. The square never changes size or color, and the behavior is contained entirely within the SVG viewport.

AI-generated description

A circle that follows the mouse.

MIT Licensed

Similar vizzes