Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Mouse Follower

Public visualization

Mouse Follower

0 stars1🌍 Public
GGuus Lammers
Last edited Feb 28, 2022
Created on Feb 28, 2022

A smiley face drawn as an SVG circle follows the mouse cursor across the viewport. Built with React and D3 v5, the component tracks pointer coordinates via React's `useState` and `useCallback` hooks within an `onMouseMove` event handler. The circle's `cx` and `cy` attributes update to match the mouse position, rendering at a fixed radius of 100 pixels.

AI-generated description

Smiley face implementation with React & D3.

Comments

Sign in to join the discussion.

MIT Licensed