Skip to main content
100%

Fork of Mouse Follower Simple

✓ Published1🌍 Public
Ssrividyap03
Last edited May 8, 2023
Created on May 8, 2023

A simple interactive visualization demonstrates pointer tracking by rendering a single circle that follows the mouse cursor across the full browser window. The SVG canvas fills the viewport using `window.innerWidth` and `window.innerHeight`. D3's `selection.on('mousemove', ...)` event listener updates the circle's `cx` and `cy` attributes to the cursor's coordinates. The example uses D3 v7's `select` to append and style the SVG and circle elements, showcasing basic event handling and attribute manipulation.

AI-generated description

A program that follows your mouse with a circle

MIT Licensed

Similar vizzes