Fork of Mouse Follower Simple Make Something Francesca Sajedi
✓ Published0🌍 Public
A green circle and red rectangle respond to the mouse. As the cursor moves, the circle repositions to the cursor's coordinates while the rectangle's width and height scale to match those same x and y values. The visualization uses the D3.js select and append methods to create SVG elements, binding a mousemove event to update the shape attributes dynamically. The SVG canvas fills the entire browser window.
AI-generated descriptionA circle that follows the mouse and stays in the bottom right corner of a rectangle that chnages hieght and width based on the mouse location. The rectangle is red and the circle is green with a radius of 25 instead of 50.
MIT Licensed