Skip to main content
100%

Mouse follow

✓ Published1🌍 Public
KKirsten Lund
Last edited Feb 10, 2021
Created on Feb 4, 2021

A circle follows the mouse cursor across an SVG canvas. The visualization demonstrates real-time interaction tracking, with the circle's position updating instantly on every mouse movement. Built with React, the app uses the `useState` hook to store cursor coordinates and the `useCallback` hook to handle the `onMouseMove` event, then renders the circle as an SVG `<circle>` element with dynamically updated `cx` and `cy` attributes.

AI-generated description

following your mouse with a circle.

<!-- <iframe width="560" height="315" src="https://www.youtube.com/embed/JMvnd1CIRNo" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe> -->
MIT Licensed

Similar vizzes