Corey's Mouse Follower - week5
✓ Published0🌍 Public
A single blue circle follows the mouse pointer across an SVG canvas, changing to a random color on click. The visualization uses D3’s `select` and `pointer` methods within a Svelte component, with a `ResizeObserver` managing canvas dimensions and `setState` updating circle coordinates and fill color on each interaction event.
AI-generated descriptionCreating circles with D3.
Challenge
- Fork this example
- Modify it
- Maybe make it Halloween themed
- Maybe make it Christmas themed
- Be creative
Svelte
Here's a video on how to get started with Svelte as well!
MIT Licensed