Skip to main content
100%

Fork of Mouse Vue

✓ Published1🌍 Public
PPaulDFPV
Last edited Dec 6, 2021
Created on Dec 4, 2021
Forked from Mouse

A Vue 2 component named `mouse-buddy` renders a single SVG circle that follows the mouse. The root instance tracks pointer movement through the `@mousemove` event, updating a `mousePosition` object which is passed as a prop to the child component. The circle’s `cx` and `cy` attributes are bound directly to this data, with a fixed radius of 30 pixels. No D3 APIs beyond the core library are used; the visualization relies entirely on Vue’s reactive data binding and template interpolation. The SVG viewport is 960 by 500 pixels.

AI-generated description
MIT Licensed

Similar vizzes