Animation · lib · 4K

Zoom rectangles

The window-open animation: about twelve 1px outlines step from an icon to a window in ~180 ms, bunched near the source, XOR-drawn with mix-blend-mode: difference over any pattern. Promise-based, SSR-safe, instant under reduced motion; zoomRectsAnimate plugs into the window manager.

Install

pnpm dlx shadcn@latest add @s7ui/zoom-rects

Example

This example also uses @s7ui/desktop-icon @s7ui/icons @s7ui/window.

Double-click an icon (or select it and press Enter) to open it; use the close box to send it back.

Info

Files:
lib/zoom-rects.ts
Uses:
—
Packages:
—