# HyperFrames Shader Transition — effect skill for transitions

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

Place a WebGL shader between two HyperFrames scenes with HyperShader.init({scenes, transitions}).

- **Type:** [Effect](https://varg.ai/how-to/effects.md) · [Transitions](https://varg.ai/how-to/browse/skills/transitions.md)
- **Slug:** `hyperframes-shader-transition`
- **Status:** live
- **Publisher:** HeyGen (community)
- **License:** Apache-2.0
- **Source:** https://github.com/heygen-com/hyperframes/tree/main/registry/blocks/domain-warp-dissolve
- **Works in:** Claude Code, Claude.ai, Codex, Cursor, OpenClaw, Gemini CLI, Any MCP client, varg Studio
- **Requires:** HyperFrames (npx hyperframes)
- **Cost:** Free — the take renders locally; generated footage, if any, bills by the model

## What it does

Built on [Domain Warp Dissolve](https://github.com/heygen-com/hyperframes/tree/main/registry/blocks/domain-warp-dissolve) by HeyGen (HyperFrames), Apache-2.0. The write-up and recipes below are varg's.

14 shaders: domain-warp, ridged-burn, whip-pan, sdf-iris, ripple-waves, gravitational-lens, cinematic-zoom, chromatic-split, glitch, swirl-vortex, thermal-distortion, flash-through-white, cross-warp-morph, light-leak.

**When:** HyperFrames compositions that need per-pixel transitions; mix freely with CSS transitions.

**Watch out:** CSS that html2canvas cannot capture: `transparent` in gradients, `var()` on captured elements, missing scene background-color.

**Timing:** Calm 0.5–0.8 s, medium 0.3–0.5 s, high energy 0.15–0.3 s

**Also called:** @hyperframes/shader-transitions, HyperShader.init, WebGL scene transition

### In HyperFrames

```html
<div id="root" data-composition-id="main" data-start="0" data-duration="12" data-width="1920" data-height="1080">
  <div id="s1" class="scene" style="background:#0a0a0a">…</div>
  <div id="s2" class="scene" style="background:#0a0a0a">…</div>
  <div id="s3" class="scene" style="background:#0a0a0a">…</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/@hyperframes/shader-transitions/dist/index.global.js"></script>
<script>
  const tl = HyperShader.init({
    bgColor: "#0a0a0a", accentColor: "#ff6b2b",
    scenes: ["s1", "s2", "s3"],
    transitions: [
      { time: 4, shader: "whip-pan", duration: 0.4 },
      { time: 8, duration: 0.6 }          // no shader -> CSS crossfade
    ],
  });
  window.__timelines = window.__timelines || {}; window.__timelines["main"] = tl;
</script>
```
Let `init()` create the timeline and add your beat tweens to the returned `tl`. Without WebGL it falls back to normal playback. Ready blocks: `npx hyperframes add <slug>` (e.g. whip-pan, sdf-iris, domain-warp-dissolve).

### Ready-made components

- [Domain Warp Dissolve](https://skills.varg.ai/component/hf.domain-warp-dissolve/) (hyperframes): npx hyperframes add domain-warp-dissolve
- [Ridged Burn](https://skills.varg.ai/component/hf.ridged-burn/) (hyperframes): npx hyperframes add ridged-burn
- [Whip Pan](https://skills.varg.ai/component/hf.whip-pan/) (hyperframes): npx hyperframes add whip-pan
- [SDF Iris](https://skills.varg.ai/component/hf.sdf-iris/) (hyperframes): npx hyperframes add sdf-iris
- [Ripple Waves](https://skills.varg.ai/component/hf.ripple-waves/) (hyperframes): npx hyperframes add ripple-waves
- [Gravitational Lens](https://skills.varg.ai/component/hf.gravitational-lens/) (hyperframes): npx hyperframes add gravitational-lens
- [Cinematic Zoom](https://skills.varg.ai/component/hf.cinematic-zoom/) (hyperframes): npx hyperframes add cinematic-zoom
- [Chromatic Radial Split](https://skills.varg.ai/component/hf.chromatic-radial-split/) (hyperframes): npx hyperframes add chromatic-radial-split
- [Glitch](https://skills.varg.ai/component/hf.glitch/) (hyperframes): npx hyperframes add glitch
- [Swirl Vortex](https://skills.varg.ai/component/hf.swirl-vortex/) (hyperframes): npx hyperframes add swirl-vortex
- [Thermal Distortion](https://skills.varg.ai/component/hf.thermal-distortion/) (hyperframes): npx hyperframes add thermal-distortion
- [Flash Through White](https://skills.varg.ai/component/hf.flash-through-white/) (hyperframes): npx hyperframes add flash-through-white
- [Cross Warp Morph](https://skills.varg.ai/component/hf.cross-warp-morph/) (hyperframes): npx hyperframes add cross-warp-morph
- [Light Leak](https://skills.varg.ai/component/hf.light-leak/) (hyperframes): npx hyperframes add light-leak

### Where this comes from

- [HyperFrames: @hyperframes/shader-transitions](https://hyperframes.heygen.com/packages/shader-transitions)
- [HyperFrames: compositions](https://hyperframes.heygen.com/concepts/compositions)

## Use when

- HyperFrames compositions that need per-pixel transitions; mix freely with CSS transitions.

## Not for

- CSS that html2canvas cannot capture: `transparent` in gradients, `var()` on captured elements, missing scene background-color.

## 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/ridged-burn.mp4 — Preview of the Ridged Burn component that builds this take (credit: Ridged Burn · hyperframes, https://hyperframes.heygen.com/catalog/blocks/ridged-burn)

## More transitions skills

- [editly](https://varg.ai/how-to/skills/editly.md): Declarative JSON5 video editing CLI/API: clips, titles, transitions, audio mixing, rendered with ffmpeg.
- [Mix (Cross Dissolve)](https://varg.ai/how-to/skills/mix-dissolve.md): The two shots blend through each other. The quietest transition: "time passes" or "this continues".
- [Dip to Black](https://varg.ai/how-to/skills/black-fade.md): A fades to black, then B fades up. Marks the end of a section or a bigger jump in time.
- [White Flash](https://varg.ai/how-to/skills/white-flash.md): The frame blows out to white for a moment and opens on the next shot. Energy, memory or a camera snap.
- [Pull In (Zoom In)](https://varg.ai/how-to/skills/pull-in-zoom.md): The camera rushes into shot A and lands, still moving forward, in shot B. The signature short-form transition.
- [Pull Out (Zoom Out)](https://varg.ai/how-to/skills/pull-out-zoom.md): The camera jerks backwards out of shot A and keeps pulling back as shot B settles in.

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