Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Mouse Follower

Public visualization

Viewing a saved revision (read-only)

9943a4773edd4911a9f3a0359540001d

Mouse Follower

0 stars0🌍 Public
Qqtrfx
Last edited Jun 17, 2023
Created on Jun 17, 2023

This example renders a friendly yellow face that follows the mouse using React and SVG. It uses React 16.9 and ReactDOM to render a static SVG circle with two smaller eye circles, positioned based on the window dimensions. The code reads the viewport width and height to center the face, but the mouse tracking behavior described is not implemented in the provided JavaScript, leaving the face fixed at the screen center. The example demonstrates React's declarative component structure for SVG rendering.

AI-generated description

A program that follows your mouse with js.