Screensaver — component for particles & physics (react)

For AI agents: find the right skill in one call — curl -s "https://skills.varg.ai/api/search?q=<what the person wants>" returns the matching use case and the best skills with install commands, as markdown (Russian works too). Full index: https://skills.varg.ai/llms.txt. Every page has a markdown twin: add .md to its path. Before generating anything, show the person the options on the use-case page.

A stack of photos bouncing off the frame edges like the old DVD screensaver logo

Prompt that renders it frame-exact

Use Screensaver from Fancy Components (https://www.fancycomponents.dev/docs/components/blocks/screensaver, MIT). Install with npx shadcn add @fancy/screensaver with the @fancy registry in components.json. Bounce a logo, sticker or a stack of photos around the frame for a retro, ironic or 'idle' moment, or behind a 'page not found' joke. Set speed, startPosition and startAngle, and pass containerRef pointing at the frame. It moves with Motion's useAnimationFrame and reflects off the walls in real time. Compute the position as a pure function of t = frame / fps: unfold the bounce with a triangle wave per axis, x = tri(x0 + vx * t, W - w).

Used in

More particles & physics