WanderingEyes renders two animated eyes that look around and blink. It works
best for search, discovery, queue watching, and brand-led waiting states where a
standard spinner would feel too mechanical.
Installation
Usage
import { WanderingEyes } from "@/components/loading-ui/wandering-eyes";<WanderingEyes className="h-12 w-[108px]" />Customization
WanderingEyes uses a container query box with a fixed 9 / 4 aspect ratio.
Set both height and width for predictable layout, inherit color from the
surrounding text, and use --duration for the full look-and-blink cycle.
Size
Keep the width about 2.25 times the height so the eyes have room to move.
Color
By default, the eye shape is a faint version of currentColor and the pupil is
solid currentColor.
Color Variables
Set --eye-color and --pupil-color when the loader should look more
illustrative than inherited.
Duration
Set --duration to make the gaze feel quick and curious or slower and more
ambient.
Expression
Use eyeScale, gapScale, pupilScale, blinkScale, and travelScale to
tune the expression without editing the component.