Skip to main content
100%

Mouse Follower - Eri Kim

✓ Published0🌍 Public
EEri Kim
Last edited Jan 13, 2023
Created on Jan 12, 2023
Forked from Mouse Follower

A mouse follower displays the text "Click to change the color!" that tracks the cursor’s position across the screen. Clicking triggers a transition that enlarges the font size and updates the text to show the new random RGBA color value. The visualization uses D3.js v7 with unidirectional data flow, managing state through a `setState` function and re-rendering on each interaction. Mouse movement and click events update the state, while D3 transitions animate the text’s size and color display.

AI-generated description

A mouse follower with the text "Click to change the color!" using unidirectional data flow.

On click, the color of the text changes and it displays the rgba of the color with transition (bigger font size).

MIT Licensed

Similar vizzes