Fork of Mouse Follower
✓ Published0🌍 Public
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 descriptionA circle that follows the mouse using unidirectional data flow. See also Mouse Follower with React.
MIT Licensed