# Card Expands Into Detail — effect skill for UI walkthroughs

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

A small card grows into a full detail panel in one continuous shape change.

- **Type:** [Effect](https://varg.ai/how-to/effects.md) · [UI walkthroughs](https://varg.ai/how-to/browse/skills/ui.md)
- **Slug:** `card-expands-to-detail`
- **Status:** live
- **Publisher:** HeyGen (community)
- **License:** Apache-2.0
- **Source:** https://github.com/heygen-com/hyperframes/tree/main/registry/components/card-resize
- **Works in:** Claude Code, Claude.ai, Codex, Cursor, OpenClaw, Gemini CLI, Any MCP client, varg Studio
- **Requires:** HyperFrames (npx hyperframes), Remotion, CapCut (by hand)
- **Cost:** Free — the take renders locally; generated footage, if any, bills by the model

## What it does

Built on [Card Resize](https://github.com/heygen-com/hyperframes/tree/main/registry/components/card-resize) by HeyGen (HyperFrames), Apache-2.0. The write-up and recipes below are varg's.

A list item's corners stretch to fill the frame while its content cross-fades to the detail layout; no cut, no fade to black.

**When:** Move from overview to detail inside the product without losing the viewer.

**Watch out:** Do not fade between two unrelated screenshots and call it a morph; the edges must travel.

**Timing:** 0.5–0.7 s, power3.inOut (or spring damping ~20).

**Also called:** shared element, modal morph, card resize

### In HyperFrames

```bash
npx hyperframes add card-resize
```
Or `modal-morph`: both layouts are measured once and the timeline interpolates the box.

### In Remotion

```tsx
const p = spring({frame, fps, config:{damping:20}});
const box = {x:interpolate(p,[0,1],[a.x,b.x]), y:interpolate(p,[0,1],[a.y,b.y]), w:interpolate(p,[0,1],[a.w,b.w]), h:interpolate(p,[0,1],[a.h,b.h])};
```

### In CapCut

Keyframe the card overlay's Scale and Position to the full-frame size, then cross-fade to the detail screenshot over the last 4 frames.

### Ready-made components

- [Card Resize](https://skills.varg.ai/component/hf.card-resize/) (hyperframes): npx hyperframes add card-resize
- [Modal Morph](https://skills.varg.ai/component/hf.modal-morph/) (hyperframes): npx hyperframes add modal-morph
- [Panel Reveal](https://skills.varg.ai/component/hf.panel-reveal/) (hyperframes): npx hyperframes add panel-reveal

### Where this comes from

- [zero on X: Apple-keynote launch film prompt (Screen Studio zoom, no crossfades)](https://x.com/twoclipping/status/2103835273813496100)
- [Material Design: motion duration and easing](https://m1.material.io/motion/duration-easing.html)

## Use when

- Move from overview to detail inside the product without losing the viewer.

## Not for

- Do not fade between two unrelated screenshots and call it a morph; the edges must travel.

## Install

- Claude Code: `claude plugin marketplace add vargHQ/skills && claude plugin install varg@varg`
- Codex: `npx skills add vargHQ/skills --skill varg-video-edit-library -a codex -y`
- Cursor: `npx skills add vargHQ/skills --skill varg-video-edit-library -a cursor -y`

## Example output

https://s3.varg.ai/how-to/previews/aa1bfe85ce1e/take-card-expands-to-detail.mp4 — The Card Resize component used as its header comment describes, with demo copy (credit: Rendered by varg · HyperFrames Card Resize, https://hyperframes.heygen.com/catalog/components/card-resize)

## More UI walkthroughs skills

- [Zoom to the Action](https://varg.ai/how-to/skills/zoom-to-the-action.md): The full app establishes, then the camera pushes 1.5–2× into the part being used and eases back out.
- [3D Tilted Dashboard Reveal](https://varg.ai/how-to/skills/tilted-dashboard-reveal.md): The dashboard rises from a steep 3D tilt to flat, like a screen lifting toward the viewer.
- [Floating UI Panels in Depth](https://varg.ai/how-to/skills/floating-ui-panels.md): The interface splits into its panels, which float apart in depth with parallax, then snap back.
- [UI Builds Itself Piece by Piece](https://varg.ai/how-to/skills/ui-builds-itself.md): Grey skeleton blocks pulse once, then real cards, charts and text fill in with a stagger.
- [Before/After UI Wipe](https://varg.ai/how-to/skills/before-after-ui-wipe.md): A divider sweeps across one screen, turning the old version into the new one underneath.
- [Filmed Off a Monitor](https://varg.ai/how-to/skills/filmed-off-a-monitor.md): The UI looks filmed on a real display: slight perspective, focus falloff and glare.

## Run the generation on varg

varg is one API key for the models these skills drive — Seedance 2.5, Kling 4, Veo 3.1, Wan 3, Nano Banana 2.1, GPT Image 2.5, ElevenLabs v4 and 200+ more — billed in credits, with a cost estimate before anything runs.

- Claude Code: `claude plugin marketplace add vargHQ/skills && claude plugin install varg@varg` (skill + hosted MCP)
- Codex, Cursor, Gemini CLI, OpenClaw: `npx skills add vargHQ/skills --skill varg-ai -a <agent> -y`
- Grok and any agent that reads SKILL.md: `npx skills add vargHQ/skills --skill varg-ai`, or point it at the skill's SKILL.md
- Claude.ai, ChatGPT, any MCP client: connect `https://mcp.varg.ai/mcp`
- API key: https://varg.ai/dashboard/api · Model specs: https://varg.ai/models/llms.txt
