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
YYeeleng Scott Vang
Last edited Jun 22, 2023
Created on Jun 6, 2023

A small yellow smiley face follows the mouse cursor across an SVG canvas, while a semi-transparent tooltip displays the cursor’s x and y coordinates as latitude and longitude values. Built with React and ReactDOM, the component uses useState and a mouse move event handler to update the position of both the face and the text box, which is styled with CSS.

AI-generated description

Smiley face implementation with React.

Comments

Sign in to join the discussion.

MIT Licensed