Float — primitive for entrances & emphasis (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.
An album cover bobbing and tilting gently in 3D above its caption, as if floating in water
- Install:
npx shadcn add @fancy/float - Registry: fancy · Framework: react · License: MIT
- Docs and preview: https://www.fancycomponents.dev/docs/components/blocks/float
- Source: https://github.com/danielpetho/fancy/blob/main/src/fancy/components/blocks/float.tsx
- Example: https://skills.varg.ai/previews/lib-fancy-float.mp4?v=19986 (Captured from the library’s own demo page (Fancy Components))
- 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 Float from Fancy Components (https://www.fancycomponents.dev/docs/components/blocks/float, MIT). Install with npx shadcn add @fancy/float with the @fancy registry in components.json. Wrap a product shot, album cover, phone mockup or sticker in it so the object idles with life during a hold. Set speed, amplitude [x, y, z] and rotationRange [x, y, z], and give several floating items different timeOffset values so they don't move in sync. It reads time from Motion's useAnimationFrame. Compute the sine offsets from t = frame / fps + timeOffset instead and set the transform directly.
Used in
- Captioned talking clip
- Top-N listicle
- Quiz, poll & would-you-rather
- Meme format
- Countdown & launch timer
- Certificate & achievement recap
More entrances & emphasis
- Badge Pop —
npx hyperframes add badge-pop - Curtain Reveal —
npx hyperframes add curtain-reveal - Echo Smear —
npx hyperframes add echo-smear - Echo Trail —
npx hyperframes add echo-trail - Gloss Sweep —
npx hyperframes add gloss-sweep - Ink Bleed Reveal —
npx hyperframes add ink-bleed-reveal