Warp Background — component for backgrounds & gradients (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.mdto its path. Before generating anything, show the person the options on the use-case page.
A card floats in a perspective tunnel while coloured light streaks race along the grid walls
- Install:
npx shadcn@latest add @magicui/warp-background - Registry: magic-ui · Framework: react · License: MIT
- Docs and preview: https://magicui.design/docs/components/warp-background
- Source: https://github.com/magicuidesign/magicui/blob/main/apps/www/registry/magicui/warp-background.tsx
- Example: https://skills.varg.ai/previews/lib-magic-ui-warp-background.mp4?v=55122 (Captured from the library’s own demo page (Magic UI))
- Time: Drive from the frame. Runs on its own clock (requestAnimationFrame, timers, springs or CSS). Drive it from frame / fps before rendering, or the render drifts.
- Runs: local render, free
- Aspect: any
Prompt that renders it frame-exact
Use Warp Background from Magic UI (https://magicui.design/docs/components/warp-background, MIT) behind a hero card, a quote or a product shot in the centre of the frame. The tunnel is CSS 3D; the streaks are motion animations with random hue, lane and delay that repeat forever. For a render, pick each beam's lane, hue and delay from a seeded random and compute its travel from ((frame / fps - delay) % beamDuration) / beamDuration; in HyperFrames put the same beams on the paused timeline with finite repeats. Set perspective, beamsPerSide, beamSize, beamDuration, beamDelayMin/beamDelayMax and gridColor.
Used in
- Year in review / Wrapped
- Lyric video
- Karaoke video
- Logo sting
- Title sequence
- Brand guidelines film
- Stream overlay package
- Shader loop
More backgrounds & gradients
- Aurora —
npx hyperframes add aurora - Aurora Drift —
npx hyperframes add aurora-drift - Flowing Gradient —
npx hyperframes add flowing-gradient - Mesh Gradient —
npx hyperframes add mesh-gradient - Mesh Gradient Background —
npx hyperframes add mesh-gradient-bg - Minimal Gradient Background —
npx hyperframes add mk-background