Skip to main content
Public

Share visualization

Loading preview…

Fork of Mouse Follower Simple Make Something Francesca Sajedi

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Before sharing, review the publishing checklist.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

Fork of Mouse Follower Simple Make Something Francesca Sajedi

0
Ffsajedi22
Last edited Jan 14, 2023
Created on Jan 14, 2023

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 description

A 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.

Comments

Sign in to join the discussion.

MIT Licensed