Skip to main content
Public

Share visualization

Loading preview…

Mouse follower

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Before sharing, review the publishing checklist.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

Mouse follower

0
Sstefanpullen
Last edited Dec 16, 2021
Created on Dec 15, 2021

A smiley face rendered with React SVG follows the mouse cursor across the screen. The face consists of three circles: one large yellow circle for the head and two smaller black circles for the eyes. It uses React's `useState` and `useCallback` hooks to track and update the cursor position, re-rendering the SVG elements on every mouse move. The code is structured with separate `index.html` and `index.js` files, though the data-loading logic from a CSV is not active in this version.

AI-generated description

Smiley face implementation with React.

Comments

Sign in to join the discussion.

MIT Licensed