Skip to content

Write HTML. Render video. Built for agents.

1.7 KB
Raw Blame
{
  "$schema": "https://hyperframes.heygen.com/schema/registry-item.json",
  "name": "fade-through",
  "type": "hyperframes:component",
  "title": "Fade Through",
  "description": "A calm transition primitive that fades one layer out, passes through a wash, and reveals the next layer",
  "tags": ["motion-primitive", "transition", "fade", "crossfade", "scene"],
  "files": [
    {
      "path": "fade-through.html",
      "target": "compositions/components/fade-through.html",
      "type": "hyperframes:snippet"
    }
  ],
  "variables": [
    {
      "id": "wash",
      "type": "enum",
      "role": "style",
      "label": "Wash",
      "description": "Colour of the mid-transition frame. Paper resolves through --hf-fade-through-wash, accent rides --accent.",
      "default": "paper",
      "options": [
        { "value": "paper", "label": "Paper" },
        { "value": "white", "label": "White" },
        { "value": "ink", "label": "Ink" },
        { "value": "accent", "label": "Accent" }
      ]
    },
    {
      "id": "strength",
      "type": "number",
      "role": "style",
      "label": "Strength",
      "description": "How far the wash covers at its peak. 1 is a full flash, 0.3 a light veil.",
      "default": 1,
      "min": 0.1,
      "max": 1,
      "step": 0.05
    },
    {
      "id": "shape",
      "type": "enum",
      "role": "style",
      "label": "Shape",
      "description": "Flat fills the frame evenly, bloom concentrates the wash in the centre.",
      "default": "flat",
      "options": [
        { "value": "flat", "label": "Flat" },
        { "value": "bloom", "label": "Bloom" }
      ]
    }
  ],
  "preview": {
    "poster": "https://static.heygen.ai/hyperframes-oss/docs/images/catalog/components/fade-through.png"
  }
}