Source: HeyGen HyperFrames catalog — code blocks (https://hyperframes.heygen.com/catalog), pulled 2026-06-27; individual block pages archived under ai-research/hyperframes-block-code-*.md.
HeyGen HyperFrames ships a code block family for developer-focused video. It splits in two: WebGL/GSAP code-animation blocks that reveal or transform a snippet (typing, diff, morph, 3D extrude, particle assemble, shader dissolve, scroll-to-line, highlight sweep, snippet flight), and a large set of code-snippet-* themes that render a snippet or shell session typing out inside a faithfully-styled editor or terminal window in a chosen color scheme. Every block is a self-contained 1920×1080 composition installed the same way — npx hyperframes add <slug> — and previewable (poster + clip) at hyperframes.heygen.com/catalog. This page catalogs the 9 animation blocks and 24 syntax-highlight themes (33 blocks total).
Key Takeaways
- Add any block with
npx hyperframes add <slug>(e.g.npx hyperframes add code-diff); each lands as ahyperframes:compositionHTML file incompositions/. - Install whole families at once:
npx hyperframes add codepulls every VS Codecode-snippet-*theme;npx hyperframes add apple-terminalpulls all 12 Apple Terminal profiles. - Mount a block in a host composition via a
<div>carrying the shared data-attributes:data-composition-id,data-composition-src,data-start,data-duration,data-track-index,data-width,data-height. Durations vary per block (animation blocks 5–8s; VS Code themes 11s; Apple Terminal themes 12s). - VS Code themes recreate the full workbench (activity bar, sidebar, explorer tree, tabs, breadcrumbs, terminal panel, status bar) with colors sourced from the official
microsoft/vscodebuilt-in theme JSON, per-character typing with cursor tracking + active-line highlight, an end-of-sequence 3D perspective tilt, and a mock-test terminal panel; they ship abackground.jpegasset. - Apple Terminal themes recreate macOS Terminal.app window chrome (traffic-light buttons + centered title bar), per-character GSAP typing, sequential output reveal, and a cursor that blinks three times then holds; they are self-contained (GSAP CDN only, no external assets).
- When to use: reach for the code-animation blocks to dramatize an edit or reveal a snippet with motion; reach for the
code-snippet-*themes to show static code or a shell session typing out in a recognizable IDE/terminal skin. ^[inferred]
Code Animation Blocks
WebGL/GSAP blocks that animate a snippet. Each mounts with the shared data-composition-* attributes; set data-duration to the value listed.
Code 3D Extrude (code-3d-extrude)
- Renders: syntax-highlighted code on a lit, beveled 3D slab that rotates through real space and settles to a readable rest — true WebGL depth and lighting, not a 2D transform.
- Tags:
codecode-animation3dwebgldeveloper· Duration: 8s. - Add / mount:
npx hyperframes add code-3d-extrude→<div data-composition-id="code-3d-extrude" data-composition-src="compositions/code-3d-extrude.html" data-start="0" data-duration="8" data-track-index="1" data-width="1920" data-height="1080"></div>
Code Diff (code-diff)
- Renders: an edit shown as a colored diff — removed lines collapse in red, added lines expand in green.
- Tags:
codecode-animationdiffdeveloper· Duration: 6s. - Add / mount:
npx hyperframes add code-diff→ mount withdata-composition-id="code-diff",data-duration="6".
Code Highlight Sweep (code-highlight)
- Renders: a highlight band sweeps across a target line while the surrounding context dims — draws the eye to one line.
- Tags:
codecode-animationhighlightdeveloper· Duration: 5s. - Add / mount:
npx hyperframes add code-highlight→ mount withdata-composition-id="code-highlight",data-duration="5".
Code Morph (code-morph)
- Renders: one snippet transforms into another — tokens glide between positions, leavers fade out, enterers fade in. Shiki Magic Move re-driven as a paused GSAP timeline.
- Tags:
codecode-animationmorphrefactordeveloper· Duration: 7s. - Add / mount:
npx hyperframes add code-morph→ mount withdata-composition-id="code-morph",data-duration="7". Good for showing a refactor.
Code Particle Assemble (code-particle-assemble)
- Renders: thousands of GPU points scatter through space and fly to the exact glyph pixels of the code, resolving into readable syntax-highlighted text — a particle system, not a token tween.
- Tags:
codecode-animationparticlesgpuwebgldeveloper· Duration: 8s. - Add / mount:
npx hyperframes add code-particle-assemble→ mount withdata-composition-id="code-particle-assemble",data-duration="8".
Code Scroll To Line (code-scroll)
- Renders: the camera scrolls a long file to bring a target line to center and spotlights it — for walking through real modules.
- Tags:
codecode-animationscrolldeveloper· Duration: 6s. - Add / mount:
npx hyperframes add code-scroll→ mount withdata-composition-id="code-scroll",data-duration="6".
Code Shader Dissolve (code-shader-dissolve)
- Renders: the code compiles into existence — a GPU fragment shader resolves it out of seeded noise with a chromatic dissolve front and edge glow, then holds crisp.
- Tags:
codecode-animationshaderwebgldeveloper· Duration: 7s. - Add / mount:
npx hyperframes add code-shader-dissolve→ mount withdata-composition-id="code-shader-dissolve",data-duration="7".
Code Typing (code-typing)
- Renders: token-streamed typing reveal with a caret that tracks the frontier — deterministic, no CSS animation.
- Tags:
codecode-animationtypingdeveloper· Duration: 5s. - Add / mount:
npx hyperframes add code-typing→ mount withdata-composition-id="code-typing",data-duration="5".
Code Snippet Flight (code-snippet-flight)
- Renders: discrete code snippets fly in from the side and assemble into a stacked program, staggered. Block-level FLIP.
- Tags:
codecode-animationflightdeveloper· Duration: 6s. - Note: despite the
code-snippet-prefix, this is an animation block (no color theme), and is not pulled by thenpx hyperframes add codetheme bundle. ^[inferred] - Add / mount:
npx hyperframes add code-snippet-flight→ mount withdata-composition-id="code-snippet-flight",data-duration="6".
Code Snippet Themes (code-snippet-*)
All 24 themes are the same per-character-typing snippet block re-skinned in a different color scheme. Two families:
- Apple Terminal (12) — macOS Terminal.app window chrome (traffic lights + title bar); 12s; self-contained (GSAP CDN only). Grab all at once:
npx hyperframes add apple-terminal. - VS Code (12) — full VS Code workbench, colors from the official
microsoft/vscodetheme JSON, end-of-sequence 3D tilt, shipsbackground.jpeg; 11s. Grab all at once:npx hyperframes add code.
| Theme | add slug | Palette / style |
|---|---|---|
| Apple Terminal Basic | code-snippet-apple-terminal-basic | White bg, black monospace text, solid black cursor |
| Apple Terminal Clear Dark | code-snippet-apple-terminal-clear-dark | Translucent black bg, white text, grey cursor |
| Apple Terminal Clear Light | code-snippet-apple-terminal-clear-light | Translucent white bg, black text, grey cursor |
| Apple Terminal Grass | code-snippet-apple-terminal-grass | Black bg, pure green #00C100 text + cursor; green-accented title bar |
| Apple Terminal Homebrew | code-snippet-apple-terminal-homebrew | Black bg, #00CF00 green text, #48F800 lime cursor (classic) |
| Apple Terminal Man Page | code-snippet-apple-terminal-man-page | Pale yellow #FEF49C bg, black text; mock man-page output |
| Apple Terminal Novel | code-snippet-apple-terminal-novel | Warm parchment #DFC18A bg, #3E2900 dark-brown text |
| Apple Terminal Ocean | code-snippet-apple-terminal-ocean | #224FBE blue bg, white text |
| Apple Terminal Pro | code-snippet-apple-terminal-pro | Black bg, #BBBBBB grey text, #88FF67 lime cursor (hacker look) |
| Apple Terminal Red Sands | code-snippet-apple-terminal-red-sands | #7B140E crimson bg, #FFE1B9 sandy text |
| Apple Terminal Silver Aerogel | code-snippet-apple-terminal-silver-aerogel | #3D3D3D dark-grey bg, white text (neutral) |
| Apple Terminal Solid Colors | code-snippet-apple-terminal-solid-colors | #4C0099 deep-purple bg, white text |
| Dark 2026 | code-snippet-dark-2026 | Newest VS Code dark theme; refined token scopes, updated palette |
| Dark Modern | code-snippet-dark-modern | Default dark theme; clean, contemporary, comfortable contrast |
| Dark+ | code-snippet-dark-plus | Classic dark theme; enhanced highlighting for popular languages |
| High Contrast | code-snippet-high-contrast | Maximum-contrast dark theme (accessibility) |
| High Contrast Light | code-snippet-high-contrast-light | Maximum-contrast light theme (accessibility) |
| Light 2026 | code-snippet-light-2026 | Newest VS Code light theme; refined token scopes, updated palette |
| Light Modern | code-snippet-light-modern | Default light theme; fresh modern take on classic VS light |
| Light+ | code-snippet-light-plus | Classic light theme; enhanced highlighting for popular languages |
| Monokai | code-snippet-monokai | Iconic warm-toned dark theme |
| Solarized Light | code-snippet-solarized-light | Ethan Schoonover’s precision-engineered light scheme |
| Visual Studio Dark | code-snippet-visual-studio-dark | Traditional Visual Studio dark scheme |
| Visual Studio Light | code-snippet-visual-studio-light | Traditional Visual Studio light scheme |
Try It
- Drop a diff reveal:
npx hyperframes add code-diff, then mount<div data-composition-id="code-diff" data-composition-src="compositions/code-diff.html" data-start="0" data-duration="6" data-track-index="1" data-width="1920" data-height="1080"></div>on track 1 of a host composition. - Pick a snippet skin:
npx hyperframes add code-snippet-monokai(ornpx hyperframes add codefor all 12 VS Code themes), then prompt HyperFrames to fill the editor with your own code. - Show a shell demo:
npx hyperframes add apple-terminalinstalls all 12 Terminal.app profiles; switch looks by changing only thedata-composition-id(e.g.code-snippet-apple-terminal-homebrew→code-snippet-apple-terminal-ocean). - Browse first: preview every block’s poster + clip at hyperframes.heygen.com/catalog before choosing a slug.