Skip to main content
100%

Fork of Mouse Follower

✓ Published0🌍 Public
AAndy Curtis
Last edited Aug 30, 2023
Created on Aug 30, 2023
Forked from Mouse Follower

A yellow circle follows the mouse cursor across the full browser viewport. The visualization demonstrates unidirectional data flow in a React-like pattern: mouse movement triggers a `setState` callback that updates position coordinates, which are then rendered as circle attributes. Using D3 v7, the `viz` function binds an SVG element and updates `cx` and `cy` properties based on the current state. The initial position defaults to the viewport center before the first mouse interaction.

AI-generated description

A circle that follows the mouse using unidirectional data flow. See also Mouse Follower with React.

MIT Licensed

Similar vizzes