Elementreferenz

Template-Element

1. Struktur

interface TemplateClip extends BaseClip {
  type: "template";
  template: string;
  data?: Record<string, unknown>;
}

2. Unterstützte Template-Namen

Derzeit dokumentierte Namen:

  • product-intro
  • slideshow
  • subtitle-video
  • talking-head
  • comparison
  • countdown
  • text-reveal
  • news
  • quote
  • list

3. Runtime-Grenzen

template-Clips werden zur Laufzeit in normale Clips expandiert. Die genaue erzeugte Struktur hängt vom ausgewählten Template und seinem data ab.

Die Vererbung von transform, style, animations, keyframes oder transition auf Template-Ebene ist nicht als stabiles Verhalten von Kindclips dokumentiert.

4. Beispiel

{
  "type": "template",
  "template": "talking-head",
  "start": 0,
  "duration": 6,
  "data": {
    "src": { "$ref": "host" },
    "words": { "$ref": "sub-main" },
    "title": "Weekly Update",
    "speaker": "Alex Chen",
    "role": "Founder",
    "showLowerThird": true
  }
}