Skip to content

Write HTML. Render video. Built for agents.

2.1 KB
Raw Blame
{
  "$schema": "https://hyperframes.heygen.com/schema/registry-item.json",
  "name": "per-word-crossfade",
  "type": "hyperframes:component",
  "title": "Per-Word Crossfade",
  "description": "Words gently fade into place with a short vertical drift for calm keynote rhythm.",
  "tags": ["motion-primitive", "typography"],
  "files": [
    {
      "path": "per-word-crossfade.html",
      "target": "compositions/components/per-word-crossfade.html",
      "type": "hyperframes:snippet"
    }
  ],
  "variables": [
    {
      "id": "text",
      "type": "string",
      "role": "content",
      "label": "Text",
      "description": "The line to animate. It is split on whitespace and every word gets its own span, so the stagger picks up the new words.",
      "default": "Create once reuse everywhere"
    },
    {
      "id": "drift",
      "type": "enum",
      "role": "motion",
      "label": "Drift",
      "description": "Scales the vertical offset, so the words cover a shorter or longer run in the same time.",
      "default": "standard",
      "options": [
        { "value": "close", "label": "Close" },
        { "value": "standard", "label": "Standard" },
        { "value": "far", "label": "Far" }
      ]
    },
    {
      "id": "blur",
      "type": "enum",
      "role": "style",
      "label": "Blur",
      "description": "Scales the blur radius the timeline drives, from a light haze to a full smear.",
      "default": "standard",
      "options": [
        { "value": "soft", "label": "Soft" },
        { "value": "standard", "label": "Standard" },
        { "value": "heavy", "label": "Heavy" }
      ]
    },
    {
      "id": "tone",
      "type": "enum",
      "role": "style",
      "label": "Tone",
      "description": "Word colour: ink for light frames, paper for dark ones, accent rides --brand.",
      "default": "ink",
      "options": [
        { "value": "ink", "label": "Ink" },
        { "value": "paper", "label": "Paper" },
        { "value": "accent", "label": "Accent" }
      ]
    }
  ],
  "preview": {
    "poster": "https://static.heygen.ai/hyperframes-oss/docs/images/catalog/components/per-word-crossfade.png"
  }
}