Skip to main content
100%

Monster Eye

✓ Published0🌍 Public
KKrishanu Nayak
Last edited Mar 8, 2022
Created on Mar 7, 2022
Forked from D3 Starter

A large gray eye follows the mouse cursor with its iris and pupil, which shift position, rotate, and shrink as the pointer moves toward the screen's edges. The ellipse-shaped iris and pupil scale down while rotating based on the cursor's distance and angle from the center. Built with D3 v7, the visualization uses `d3.scaleLinear` for positional and radial scaling, and `transition().attr()` to animate the SVG ellipse attributes (`cx`, `cy`, `rx`, `ry`, `transform`) in response to `mousemove` events. The eye's outline is a static circle.

AI-generated description

A humble attempt to create my first D3 viz.

MIT Licensed

Similar vizzes