# Code on a Lit 3D Slab — effect skill for code & terminal

> **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.

Highlighted code sits on a beveled slab that turns through space under studio light, then faces the camera.

- **Type:** [Effect](https://varg.ai/how-to/effects.md) · [Code & terminal](https://varg.ai/how-to/browse/skills/code.md)
- **Slug:** `code-on-3d-slab`
- **Status:** live
- **Publisher:** HeyGen (community)
- **License:** Apache-2.0
- **Source:** https://github.com/heygen-com/hyperframes/tree/main/registry/blocks/code-3d-extrude
- **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 [Code 3D Extrude](https://github.com/heygen-com/hyperframes/tree/main/registry/blocks/code-3d-extrude) by HeyGen (HyperFrames), Apache-2.0. The write-up and recipes below are varg's.

Thick glassy or dark slab, specular light sliding across, code crisp on the face; optional particles assembling into the glyphs.

**When:** Hero shot of an SDK or API in a launch film; title beat for developer products.

**Watch out:** Do not keep the slab angled while the viewer is meant to read; land flat and hold.

**Timing:** Turn 1.2–1.8 s power2.inOut, land flat, hold 1.5 s.

**Also called:** 3D code, code hero, extruded code

### In HyperFrames

```bash
npx hyperframes add code-3d-extrude
```
Or `code-particle-assemble` / `code-shader-dissolve` for compile-in effects.

### In Remotion

```tsx
const ry = interpolate(frame,[0,45],[-28,0],{extrapolateRight:'clamp',easing:Easing.inOut(Easing.quad)});
<div style={{transform:`perspective(1600px) rotateY(${ry}deg)`, boxShadow:'0 40px 80px rgba(0,0,0,.5)'}}><CodeBlock/></div>
```

### In CapCut

Overlay a code screenshot; Animation In "Rotate 3D"; add a light-sweep effect.

### Ready-made components

- [Code 3D Extrude](https://skills.varg.ai/component/hf.code-3d-extrude/) (hyperframes): npx hyperframes add code-3d-extrude
- [Code Particle Assemble](https://skills.varg.ai/component/hf.code-particle-assemble/) (hyperframes): npx hyperframes add code-particle-assemble
- [Code Shader Dissolve](https://skills.varg.ai/component/hf.code-shader-dissolve/) (hyperframes): npx hyperframes add code-shader-dissolve

### Where this comes from

- [Remotion template: Code Hike](https://remotion.dev/templates/code-hike)

## Use when

- Hero shot of an SDK or API in a launch film; title beat for developer products.

## Not for

- Do not keep the slab angled while the viewer is meant to read; land flat and hold.

## 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://static.heygen.ai/hyperframes-oss/docs/images/catalog/blocks/code-3d-extrude.mp4 — Preview of the Code 3D Extrude component that builds this take (credit: Code 3D Extrude · hyperframes, https://hyperframes.heygen.com/catalog/blocks/code-3d-extrude)

## More code & terminal skills

- [Editor Types the Code](https://varg.ai/how-to/skills/editor-types-the-code.md): Syntax-highlighted code types into an editor window with a caret riding the frontier.
- [Red/Green Diff Collapse](https://varg.ai/how-to/skills/red-green-diff.md): Removed lines flash red and collapse away while added lines expand in green.
- [Spotlight One Line of Code](https://varg.ai/how-to/skills/spotlight-one-line.md): A highlight band sweeps onto the one line that matters while the rest of the file dims.
- [Code Morphs Between Versions](https://varg.ai/how-to/skills/code-morphs-versions.md): One snippet transforms into the next: shared tokens glide to new positions, removed ones fade, new ones fade in.
- [Terminal Session Run](https://varg.ai/how-to/skills/terminal-session-run.md): A terminal types a command, then streams real-looking log output with green checks.
- [One-Line Install Card](https://varg.ai/how-to/skills/one-line-install-card.md): A single install command types into a small terminal card, prints a success check, and holds.

## 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
