An ESM npm package with thirty-three pointer-driven isometric SVG figures. Optional React components; vanilla DOM API for other frameworks.
Overview
Hairline provides thirty-three isometric line-art figures that animate in response to pointer movement. Figures are drawn as SVG, ship with no runtime dependencies, and can be used from React components or by calling functions that attach to a DOM element.
Each figure fills its parent width at a fixed aspect ratio and shares options such as interaction intensity, light or dark theme, accessible labels, optional self-playing demos, and caption callbacks. React exports are client components; server rendering renders a placeholder box until the figure mounts in the browser.
The library includes theme CSS variables, respects reduced-motion preferences, shares one animation loop across figures on a page, and documents patterns for shadow DOM. Separate agent-oriented skills can generate new figures or adopt existing SVG artwork into the same interaction model.
Key features
- Thirty-three isometric SVG figures
- React components and DOM functions
- Pointer-driven motion intensity control
- Light, dark, and auto theme support
- Shared requestAnimationFrame loop
- Reduced motion handling
- Optional autonomous play mode
- Accessible image semantics
Use cases
- Marketing sites with reactive illustrations
- React UI accents and loaders
- Svelte or vanilla DOM integrations
- Custom figures via provided agent skills