Fork of Mouse Follower Simple
✓ Published0🌍 Public
A circle follows the mouse across a full-screen SVG, shifting to a random color from a predefined palette on every movement. The example uses D3 v7's selection methods, including `svg.on('mousemove')` for event handling and `circle.attr` to update position. An initial `getColor()` function picks randomly from an array of seven colors, while CSS hides page margins and overflow. The visualization demonstrates basic interactive SVG rendering with D3's data-binding approach.
AI-generated descriptionA circle that follows the mouse and changes color with position. Inspired from: https://vizhub.com/curran/96a301c5617446558432d366b188f192
MIT Licensed