🌍 Public
Viewing a saved revision (read-only)
18ec66e0e027440cac60287ce2a8142b
Fork of Mouse Follower
A circle follows the mouse pointer, changing to a random color and opacity with each movement. The visualization uses unidirectional data flow, where a state object is updated on mouse events and passed to a rendering function. Built with D3.js v7, it uses `select` to manage an SVG and circle element, while custom `randColor` and `randOpacity` functions generate random values.
AI-generated descriptionA circle that follows the mouse using unidirectional data flow. As the circle moves, the color and opacity change to random colors/opacity levels.