Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Mouse Follower

Public visualization

Viewing a saved revision (read-only)

18ec66e0e027440cac60287ce2a8142b

Fork of Mouse Follower

0 stars1🌍 Public
SSpencer McAvey
Last edited Jan 12, 2023
Created on Jan 10, 2023
Forked from 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 description

A circle that follows the mouse using unidirectional data flow. As the circle moves, the color and opacity change to random colors/opacity levels.